Undine Posted August 6, 2009 Share Posted August 6, 2009 i would like to run (and repeat) a script while a certain button is pressed down when the button is released again the script should stop immediately any ideas how i could do that? i was thinking about the usual hotkeyset but it seems to ignore "{1 up}"/"{1 down}" only "{1}" without the modifiers seems to be accepted Link to comment Share on other sites More sharing options...
99ojo Posted August 6, 2009 Share Posted August 6, 2009 (edited) i would like to run (and repeat) a script while a certain button is pressed down when the button is released again the script should stop immediately any ideas how i could do that? i was thinking about the usual hotkeyset but it seems to ignore "{1 up}"/"{1 down}" only "{1}" without the modifiers seems to be accepted Hi, have a look at help _IsPressed () While _IsPressed (....) what you want Wend ;-)) Stefan Edited August 6, 2009 by 99ojo Link to comment Share on other sites More sharing options...
Undine Posted August 6, 2009 Author Share Posted August 6, 2009 Hi, have a look at help _IsPressed () While _IsPressed (....) what you want Wend ;-)) Stefan hehe nice >_< will check it out after i come back Link to comment Share on other sites More sharing options...
Undine Posted August 6, 2009 Author Share Posted August 6, 2009 works just finei'm using the following in case someone needs the same:#Include <Misc.au3>while 1sleep(1)if _IsPressed(x) then send ("{y}") sleep(z)endifwend_IsPressed key list here: http://www.autoit.de/index.php?page=Thread&postID=58216 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