is it because AHK doesnt distinguish between hardware and its own outputs? What I am asking is "does the script thinks that the LMB was released even if its held down on my mouse?"
I would like to keep the trigger as LMB and not f8, is there a way around this problem?
Code: Select all
F8::
While GetKeyState("F8", "P"){
KeyWait lbutton, T0.5 ; Wait 1/2 second for user to release key
If ErrorLevel ; Still held down
While GetKeyState("lbutton","p"){ ; While it is held down
send, {lbutton down}
RandSleep(45,60) ;sleep a random length of time
send, {lbutton up}
RandSleep(40,60) ;sleep a random length of time
}
}
return
RandSleep(x,y) {
Random, rand, %x%, %y%
Sleep %rand%
}