Jump to content

WinWaitDelay Function


bourny
 Share

Recommended Posts

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

Link to comment
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.
Link to comment
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

Link to comment
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

Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...