WW_downTime

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Hardware_Tester
Pro Scripter
Posts: 58
Joined: Mon Jun 27, 2005 7:03 am
Location: Switzerland

WW_downTime

Post by Hardware_Tester » Fri Jan 06, 2006 1:29 pm

I found this variable in a old script and i did not found anything about its function. It is not contained in the code and it could have something to do with the waitwindow-command.

//downTime for WaitWindowOpen> function
Let>WW_downTime=10

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Sat Jan 07, 2006 9:02 am

Hi,

That is not a system variable. Maybe the coder meant WW_TIMEOUT which is used to set the timeout time for WaitWindowOpen.
MJT Net Support
[email protected]

Hardware_Tester
Pro Scripter
Posts: 58
Joined: Mon Jun 27, 2005 7:03 am
Location: Switzerland

Post by Hardware_Tester » Sat Jan 07, 2006 12:22 pm

Hmm, that's what I thought first. But when replacing it, it doesn't change anything. Well, I can erase it.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sun Jan 08, 2006 8:44 pm

Well it won't do anything if set *after* WaitWindowOpen. If your window is always appearing then you won't see any different behaviour. If the window does not appear within the timeout then the script will move to the next line. But it's pretty pointless unless you then check the result of the operation to determine whether or not the window timed out and do something different if it did. Just whacking Let>WW_TIMEOUT=10 in front of a WaitWindowOpen which always works will make no noticeable difference. It is there to allow you to cope with situations where the window does not appear and is only useful in conjunction with WW_RESULT:

Let>WW_TIMEOUT=30
WaitWindowOpen>microsoft word*
If>WW_RESULT=TRUE
MessageModal>Word appeared
Else
MessageModal>Word has not opened within 30 seconds timeout
Endif
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Hardware_Tester
Pro Scripter
Posts: 58
Joined: Mon Jun 27, 2005 7:03 am
Location: Switzerland

Post by Hardware_Tester » Sun Jan 08, 2006 9:55 pm

This function is used by me to not letting the script waiting infinitely for a window, when it did not apeared.

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