Sign in to follow this  
Followers 0
bourny

WinWaitDelay Function

7 posts in this topic

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



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.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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

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

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

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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

Bourny

Share this post


Link to post
Share on other sites

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.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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  
Followers 0