Help with AHK

04/21/2019 13:10 linooo#1
I need help with my AHK pulldown script, basically i need it to only activate once HOLDING right click and leftclick, but if i lets say stop holding left click it stops. So if my mag runs out it will stop pulling down because i stop shooting since it now just keeps going down if i keep holding right click.
04/22/2019 15:39 Du$ter#2
~RButton & ~LButton:: add to your ahk script
04/22/2019 17:20 linooo#3
Quote:
Originally Posted by Du$ter View Post
~RButton & ~LButton:: add to your ahk script
~RButton & LButton::
while GetKeyState("RButton")
{
DllCall("mouse_event", uint, 1, int, -1, int, 4.5, uint, 0, int, 0)
Sleep, 12
}
return
~MButton::
if GetKeyState("LButton")
{
Sleep, 5
MouseClick, Middle,,,, D
DllCall("mouse_event", uint, 0, int, 0, int, -1, uint, 0, int, 0)
}
this is the script, try it and you will see clicking right and left click together will pull it down, but when you release left click it keeps going, i want to stop this
04/22/2019 21:13 Du$ter#4
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

;
NRA := 1

; SS
NumpadEnter::Suspend

; NR
~RButton & ~LButton::
while GetKeyState("LButton") & NRA
{
DllCall("mouse_event", uint, 1, int, -2, int, 2, uint, 1, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 2, int, 1, uint, 0, int, 0)
Sleep, 48
}
return