Bunch045 Posted September 15, 2018 Share Posted September 15, 2018 I'm working on a script to make playing Brutal Doom easier for me by allowing me to use a hold-style aim rather than a toggle one. The basic idea is: When right click is pressed, right click wait until right click is released send right click again Here's the script (largely pulled from documentation) #include <Misc.au3> #include <MsgBoxConstants.au3> #include <AutoItConstants.au3> Local $hDLL = DllOpen("user32.dll") While 1 If _IsPressed("02", $hDLL) Then mouseclick ($MOUSE_CLICK_RIGHT) ; Wait until key is released. While _IsPressed("02", $hDLL) Sleep(10) WEnd mouseclick ($MOUSE_CLICK_RIGHT) EndIf Sleep(10) WEnd DllClose($hDLL) It seems pretty simple, unfortunately it seems to do nothing at all. Any help is appreciated! Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted September 15, 2018 Moderators Share Posted September 15, 2018 Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts