pouyanz Posted January 26, 2016 Share Posted January 26, 2016 Spoiler #include <Misc.au3> Global $hDLL = DllOpen("user32.dll"), $time = 500 Global $keys[8] = ["a", "b", "c", "d", "1", "2", "3", "4"] While 1 If _IsPressed("02", $hDLL) Then While _IsPressed("02", $hDLL) For $i = 0 To UBound($keys) -1 Send($keys[$i]) Sleep($time) Next WEnd EndIf Sleep(250) WEnd DllClose($hDLL) so i finally put together this code it works!!!! so yay for me but how do i make it so i can modify the delay between each button pushed? and i want like a 5 milisec delay on each button pushed (push "a" for 5milisec then release) i cant think of a way to do it without it beign look ugly Link to comment Share on other sites More sharing options...
alienclone Posted January 26, 2016 Share Posted January 26, 2016 sendkeydowndelay If @error Then MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!") EndIf "Yeah yeah yeah patience, how long will that take?" -Ed Gruberman REAL search results | SciTE4AutoIt3 Editor Full Version Link to comment Share on other sites More sharing options...
pouyanz Posted January 26, 2016 Author Share Posted January 26, 2016 1 hour ago, alienclone said: sendkeydowndelay thank you 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