MajSlayer420 Posted March 4, 2007 Share Posted March 4, 2007 Hello, I want to have my script press a keyboard key then wait a set amount of time before it presses it again, then wait a second amount of time(device off time basicly) before activating it again. I have 2 such devices i want to control in this manner. How can get keep track of how many seconds have passed for 2 things at the same time? Thanks MajSlayer420 Link to comment Share on other sites More sharing options...
EndFunc Posted March 4, 2007 Share Posted March 4, 2007 Hello, I want to have my script press a keyboard key then wait a set amount of time before it presses it again, then wait a second amount of time(device off time basicly) before activating it again. I have 2 such devices i want to control in this manner. How can get keep track of how many seconds have passed for 2 things at the same time?ThanksMajSlayer420Are you just trying to delay the keystrokes or wait for an event to happen first then hit the keystrokes?If it is a delay you can always use Sleep and the amount of time you need or you can wait for an event on both devices then perform the next action. EndFuncAutoIt is the shiznit. I love it. Link to comment Share on other sites More sharing options...
Abaddon Posted March 4, 2007 Share Posted March 4, 2007 Sleep(1000) Its in miliseconds so 1000=1 second 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