czeweii Posted June 11, 2021 Share Posted June 11, 2021 Hi, this is what I have currently. It's intention is to turbo press "I" key. #include <Misc.au3> #include <AutoItConstants.au3> #requireadmin $hDll = DllOpen("user32.dll") While 1 If _IsPressed("49", $hDll) Then Send("i") EndIf Sleep(100) WEnd Func OnAutoItExit() DllClose($hDll) EndFunc It works fine when I only hold down "I", but if I hold down "I" and then "L" key, it no longer Send "i". However if I hold down "L" key, then "I" key, it will turbo press "I". Is there a way to keep sending "I' as long as I is held down, regardless of the order of I'm pressing ? Link to comment Share on other sites More sharing options...
JockoDundee Posted June 11, 2021 Share Posted June 11, 2021 Start here: Code hard, but don’t hard code... 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