Jump to content
Sign in to follow this  
tinman

Problem with Delaying keystrokes

Recommended Posts

tinman

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

Share this post


Link to post
Share on other sites
DW1

The help file will get you through this no problem.

Check out "Sleep()" for a delay and "While" for your loop.

Share this post


Link to post
Share on other sites
tinman

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

Share this post


Link to post
Share on other sites
DW1

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

Share this post


Link to post
Share on other sites
DW1

ive to get sum sleep tonight gotta get up early for college in the morning.

*Bowing Down At Your Feet*

Bowing at MY feet? Man... you must be tired. :P

Go get some sleep.. big day!

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  

×