Page 2 of 2
Re: Change color based on content of folder?
Posted: 15 Dec 2017 21:11
by mrbosco
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?
Re: Change color based on content of folder?
Posted: 15 Dec 2017 21:13
by highend
You didn't indent your added line correctly (probably without any indentation)...
Re: Change color based on content of folder?
Posted: 15 Dec 2017 22:37
by mrbosco
The scripting language relies on indentation?
How should the first line be indented?
Re: Change color based on content of folder?
Posted: 15 Dec 2017 22:41
by mrbosco
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?
Re: Change color based on content of folder?
Posted: 15 Dec 2017 22:43
by highend
Is there a way to send a text string to the title bar or caption w/o opening up a text box?
What? You want to modify XY's window title
on the fly with an XY script?
Re: Change color based on content of folder?
Posted: 15 Dec 2017 22:46
by mrbosco
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?
Posted: 15 Dec 2017 23:04
by mrbosco
I guess the status command is good enough. Thanks for your help.
Re: Change color based on content of folder?
Posted: 15 Dec 2017 23:05
by PeterH
edit: 1 minute late

Re: Change color based on content of folder?
Posted: 15 Dec 2017 23:18
by highend
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:
Code: Select all
$exe = "D:\XY_Window title changer.exe";
run """$exe"" ""<hwnd>"" ""The new title of the window""", "%TEMP%";
<hwnd> already contains XY's window handle so you'd only need to change the text for the window...