Database Popup Window my code not working**Fixed**

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Esabik
Pro Scripter
Posts: 52
Joined: Wed Jun 15, 2005 8:03 pm
Location: Fairfield, NJ

Database Popup Window my code not working**Fixed**

Post by Esabik » Mon Nov 27, 2017 6:34 pm

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.....
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........:evil:

User avatar
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**

Post by Marcus Tettmar » Wed Nov 29, 2017 3:39 pm

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?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts