Jump to content
Sign in to follow this  
jcheng4015

Record Arrow Key Presses

Recommended Posts

jcheng4015

Hi I'm wondering if AutoIt could record arrow key presses so that it can be used again in a script.

Share this post


Link to post
Share on other sites
pieeater

what do you want to record the arrow keys for?


[spoiler]My UDFs: Login UDF[/spoiler]

Share this post


Link to post
Share on other sites
stormbreaker

I think keyloggers are not allowed to be discussed here (read the forum rules)... however, there is a function called _IsPressed() in help file. Something like this should get you started:

While 1
If _IsPressed('26') then msgbox(64, "", "You pressed up arrow key.")
If _IsPressed('1B') then Exitloop
WEnd

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites
jcheng4015

Is there a way to see how long it is pressed?

Share this post


Link to post
Share on other sites
pieeater

take a look at the TimeInit & TimerDiff function

Edited by pieeater

[spoiler]My UDFs: Login UDF[/spoiler]

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  

×