Sign in to follow this  
Followers 0

send "wait"?

6 posts in this topic

Posted

Is there a command that a person can use to let the macro called ---> "send", wait a while, instead of adding a "sleep"-command? Reason for asking is, some PC's are slower than others to respond...I need to apply a couple of "send's" ( macro's ) in my program BUT....the next "send" command must first wait for the previuos "send"-command to finish...

Share this post


Link to post
Share on other sites



Posted

This page should help. More specifically look at the SendKeyDelay part.
1 person likes this

Share this post


Link to post
Share on other sites

Posted

...doubt if this will help, as you still have to enter a specific time for delay...Thing is, on slow computers i wont have a clue how long the delay might vary :oops:

Share this post


Link to post
Share on other sites

Posted

What are you intending to do with this script?

And just to be safe, you can use Sleep ( 5000 )

Share this post


Link to post
Share on other sites

Posted

Does the window text or title change when you send one Send(), and before you need to send the next? If so you could use WinWait with the new title or text and the script will pause until that window exists, or the command times out if you use that parameter.

Share this post


Link to post
Share on other sites

Posted

The Send() function does not return until it is complete, same as most functions.

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

  • Recently Browsing   0 members

    No registered users viewing this page.