bourny Posted January 17, 2006 Share Posted January 17, 2006 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 More sharing options...
seandisanti Posted January 17, 2006 Share Posted January 17, 2006 The WinWaitDelay function states the followingWinWaitDelay 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 More sharing options...
Valuater Posted January 17, 2006 Share Posted January 17, 2006 you can jus use each "window" related wait separatelyWinWait --------------------------------------------------------------------------------Pauses execution of the script until the requested window exists.WinWait ( "title" [, "text" [, timeout]] )**********WinWaitActive ( "title", ["text"], [timeout] )**********8) Link to comment Share on other sites More sharing options...
bourny Posted January 17, 2006 Author Share Posted January 17, 2006 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 More sharing options...
seandisanti Posted January 17, 2006 Share Posted January 17, 2006 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 sendcheck out SendKeyDelay, and SendKeyDownDelay in the help file. they will affect the wait after each send Link to comment Share on other sites More sharing options...
bourny Posted January 17, 2006 Author Share Posted January 17, 2006 Thanks for the help - will try the sendkeydelay ... Bourny Link to comment Share on other sites More sharing options...
seandisanti Posted January 17, 2006 Share Posted January 17, 2006 Thanks for the help - will try the sendkeydelay ...BournyNo problem, always glad to help, welcome to the forums if someone hasn't already said it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now