christian11 Posted February 17, 2016 Posted February 17, 2016 (edited) hi im kinda newbie in autoit can you help me how to make hold key macro? i want to spam repeatedly the right click mouse button, when i hold right click button, and it will only stop when i release it #Include <Misc.au3> While 1 If _IsPressed("02") Then Do mouseup("right") mousedown("right") sleep (100) Until not _IsPressed("02") EndIf WEnd but it didnt work any suggestions? Edited February 17, 2016 by christian11
Jfish Posted February 17, 2016 Posted February 17, 2016 What is not working? Do you get any errors? Can you add some error checking? Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt
christian11 Posted February 17, 2016 Author Posted February 17, 2016 edit: finally i got it make to work, however it keeps looping/clicking even if I stop holding the right click
InunoTaishou Posted February 17, 2016 Posted February 17, 2016 (edited) Because your script is pressing right click... lol Throw in a modifier key like Ctrl/Shift/Alt for your if statement ; If right button and shift are pressed If (_IsPressed("10") and _IsPressed("02")) Then Do MouseClick("Right") Sleep(50) Until (_IsPressed("01")) EndIf Edited February 17, 2016 by InunoTaishou
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