Hi
I was confused with IfWindowOpen after I looked at the Help example.
Help Shows this and didn't example the "false" statement in my version of macro:
Example
IfWindowOpen>Notepad - [Untitled],donotepad
..
..
Label>donotepad
or, with a wildcard :
IfWindowOpen>notepad*,donotepad
..
..
Label>donotepad
I re-read this and finally understood how to setup this up:
IfWindowOpen>window_title[,label_name[,false_label_name]]
statements
[ [Else
else statements]
Endif ]
So I made my logic like this and got it working.
.........................................................................................True.....False
IfWindowOpen>Warning - Expected Cost Greater Than Standard Cost*,highstd,ok
endif
Label>highstd
Setfocus>Progression*
Setfocus>Warning - Expected Cost Greater Than Standard Cost*
Wait>1
Press Enter
Label>ok
rest of script.....
Database Popup Window my code not working**Fixed**
Moderators: Dorian (MJT support), JRL
Database Popup Window my code not working**Fixed**
Last edited by Esabik on Wed Nov 29, 2017 9:09 pm, edited 1 time in total.
Just when you thought it was safe to go in the water........
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Database Popup Window my code not working**Fixed**
Thanks for sharing the problem and the solution so that this forum can help others like you in future
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?