Jump to content

Problem with Delaying keystrokes


tinman
 Share

Recommended Posts

I'm having a problem putting a delay in my macro it needs to be basicly like this

Send {2}

<---------------A delay of 2 seconds

Send {1}

<---------------A delay of 10 seconds.

Send {3}

<---------------Another delay of 2 seconds

Send {3}

<---------------Another delay of 2 seconds

Send {3}

<------------- then i need an infinite loop

Link to comment
Share on other sites

believe me i have tried and tried. all day today. but i cant figure it out... i can get the keys to send but i cant get the... format i guess give me and example of the sleep and loop and ill put it in... ive to get sum sleep tonight gotta get up early for college in the morning.

thanx tho

Link to comment
Share on other sites

HotKeySet( "{ESC}", "Leave" )
While 1
    Send("{2}")
    Sleep(2000)
    Send("{1}")
    Sleep(10000)
    Send("{3}")
    Sleep(2000)
    Send("{3}")
    Sleep(2000)
    Send("{3}")
    Sleep(2000); <-- You didn't have a sleep here, but you might need it due to the loop
WEnd

Func Leave()
    Exit
EndFunc

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...