I wanted an indication when the script was running so I added
msg "Script Started";
to the very beginning but instead of popping up a dialog and then running the rest of the script it just shows the whole script and doesn't actually do anything.
I'm a newbie but I thought this should be pretty easy to do.
Any ideas what I'm doing wrong?
Change color based on content of folder?
Re: Change color based on content of folder?
You didn't indent your added line correctly (probably without any indentation)...
One of my scripts helped you out? Please donate via Paypal
Re: Change color based on content of folder?
The scripting language relies on indentation?
How should the first line be indented?
How should the first line be indented?
Re: Change color based on content of folder?
In a multi-line script all lines apart from the first line have to be indented by at least one space.
Sorry, it never occurred to me that there was an indentation rule.
Is there a way to send a text string to the title bar or caption w/o opening up a text box?
Sorry, it never occurred to me that there was an indentation rule.
Is there a way to send a text string to the title bar or caption w/o opening up a text box?
Re: Change color based on content of folder?
What? You want to modify XY's window title on the fly with an XY script?Is there a way to send a text string to the title bar or caption w/o opening up a text box?
One of my scripts helped you out? Please donate via Paypal
Re: Change color based on content of folder?
If it's possible, or some other way to display something without requiring to close a msgbox.
Re: Change color based on content of folder?
I guess the status command is good enough. Thanks for your help.
Re: Change color based on content of folder?
Win11 Pro 223H2 Gerrman
Re: Change color based on content of folder?
Or if it has to be the title bar...
I've attached a small tool.
It expects two parameters
01. XY's hwnd
02. The new text of the window title
If you don't supply both, it won't do anything!
E.g. invoked via XY scripting:
<hwnd> already contains XY's window handle so you'd only need to change the text for the window...
I've attached a small tool.
It expects two parameters
01. XY's hwnd
02. The new text of the window title
If you don't supply both, it won't do anything!
E.g. invoked via XY scripting:
Code: Select all
$exe = "D:\XY_Window title changer.exe";
run """$exe"" ""<hwnd>"" ""The new title of the window""", "%TEMP%";
- Attachments
-
- XY_Window title changer.zip
- (3.46 KiB) Downloaded 80 times
One of my scripts helped you out? Please donate via Paypal