I have a script that acts upon a program if the program window is open using the IfWindowOpen statement...not a problem. Now the software vendor is about to release a new version of this software that messes up my script. They are including the file name opened as the first part of the string of the window title ie; if no file open Untitled - Tattoo..... If a file is open the Untitled changes to the specific file name GMC - Tattoo....
I know you can add an asterick at the end of the program window name but what do you do if the first part of the name is constantly changing. I could do an IfWindowOpen for each possible combination but that seems a little tedious....and as possible files change will require constant modfiication.
Any idea of a better way to do this?
Help with IfWindowOpen
Moderators: JRL, Dorian (MJT support)
Just do this:
IfWindowOpen>- Tatoo*
Read the documentation regarding how the asterisk works. The asterisk says "look for a match where the window title CONTAINS the preceeding text".
IfWindowOpen>- Tatoo*
Read the documentation regarding how the asterisk works. The asterisk says "look for a match where the window title CONTAINS the preceeding text".
MJT Net Support
[email protected]
[email protected]
-
- Newbie
- Posts: 2
- Joined: Mon Apr 18, 2005 8:32 pm