Jump to content
Sign in to follow this  
bourny

WinWaitDelay Function

Recommended Posts

bourny

The WinWaitDelay function states the following

WinWaitDelay

Alters how long a script should briefly pause after a successful window-related operation.

Time in milliseconds to pause (default=250).

Will this include send statememts to that window, Example:

WinWait("Title", "Text")

WinActivate("Title", "Text")

WinWaitActive("Title", "Text")

send ("Text")

Send("{Tab}")

send ("Text")

Send("{Tab}")

send ($variable)

Send("{enter}")

It is clear there will be a delay set between the Win..... functions but will this also affect the multiple send statements.... ie - if I set the Delay to 1 second instead of 250ms the script above will take approx 9 seconds to action as it is waiting a second between each send statement

Thanks

Bourny

Share this post


Link to post
Share on other sites
seandisanti

The WinWaitDelay function states the following

WinWaitDelay

Alters how long a script should briefly pause after a successful window-related operation.

Time in milliseconds to pause (default=250).

no, it should only affect functions that directly interact with the window, like winwait, winactivate, winsetstate, etc. there are different options to control the timing of sends.

Share this post


Link to post
Share on other sites
Valuater

you can jus use each "window" related wait separately

WinWait

--------------------------------------------------------------------------------

Pauses execution of the script until the requested window exists.

WinWait ( "title" [, "text" [, timeout]] )

**********

WinWaitActive ( "title", ["text"], [timeout] )

**********

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
bourny

no, it should only affect functions that directly interact with the window, like winwait, winactivate, winsetstate, etc. there are different options to control the timing of sends.

What would the different options to control the timing of sends apart from sleep . Is there an option you can define at the top of the script to control sleep after a send that will affect all send keys rather than define sleep after each send

Share this post


Link to post
Share on other sites
seandisanti

What would the different options to control the timing of sends apart from sleep . Is there an option you can define at the top of the script to control sleep after a send that will affect all send keys rather than define sleep after each send

check out SendKeyDelay, and SendKeyDownDelay in the help file. they will affect the wait after each send

Share this post


Link to post
Share on other sites
bourny

Thanks for the help - will try the sendkeydelay ...

Bourny

Share this post


Link to post
Share on other sites
seandisanti

Thanks for the help - will try the sendkeydelay ...

Bourny

No problem, always glad to help, welcome to the forums if someone hasn't already said it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×