jcheng4015 Posted June 20, 2012 Share Posted June 20, 2012 Hi I'm wondering if AutoIt could record arrow key presses so that it can be used again in a script. Link to comment Share on other sites More sharing options...
pieeater Posted June 20, 2012 Share Posted June 20, 2012 what do you want to record the arrow keys for? [spoiler]My UDFs: Login UDF[/spoiler] Link to comment Share on other sites More sharing options...
stormbreaker Posted June 20, 2012 Share Posted June 20, 2012 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 Link to comment Share on other sites More sharing options...
jcheng4015 Posted June 20, 2012 Author Share Posted June 20, 2012 Is there a way to see how long it is pressed? Link to comment Share on other sites More sharing options...
pieeater Posted June 20, 2012 Share Posted June 20, 2012 (edited) take a look at the TimeInit & TimerDiff function Edited June 20, 2012 by pieeater [spoiler]My UDFs: Login UDF[/spoiler] 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