Jump to content
Sign in to follow this  
Kyler Carlson

Arrow keys

Recommended Posts

Kyler Carlson

I've been looking in the help file but i'm not finding it. how do i have autoit send the right arrow key or the left arror key?

Share this post


Link to post
Share on other sites
Kyler Carlson

oops sry... it was in the beta help... i was accidently in the norm 1

Edit: how can i have it send for a duration of time?

Edited by Kyler Carlson

Share this post


Link to post
Share on other sites
NELyon

AutoitSetOption("SendKeyDownDelay", 400);sets the keys to 400 mil. secs
Send("{LEFT}")

Share this post


Link to post
Share on other sites
Skruge

Edit: how can i have it send for a duration of time?

That can be interpreted in multiple ways... Pick one that matches your situation.

; Repeat for 5 seconds
$Timer = TimerInit()
Do
    Send("{LEFT}")
Until TimerDiff($Timer) > 5000

; Hold key for 5 seconds
Send("{LEFT down}")
Sleep(5000)
Send("{LEFT up}")

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

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  

×