Sign in to follow this  
Followers 0
MajSlayer420

Timing keyboard commands

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

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

Share this post


Link to post
Share on other sites

Sleep(1000)

Its in miliseconds so 1000=1 second

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