I'm trying to use an autofire script for a semi-auto weapon in an FPS game, but I've faced some problems.
I need between 1 or 0.5 seconds delay before the autofire activates, to keep changing between semi auto fire and "automatic" fire if needed
The autofire mode its activated only if Rbutton and Lbutton are pressed at the same time
And I'm trying as well to randomize the ms delay between 10 to 30 to avoid the anti-cheat software in the game
Basically, what I've tried to do its to merge the functionality of these 2 scrips in one, but with no success:
autofire with Left and right mouse buttons pressed:
Code: Select all
~rbutton & lbutton::
While GetKeyState("rbutton","D"){
Click
Sleep 50 ; milliseconds
}
return
Code: Select all
~lbutton::
KeyWait lbutton, T0.1
If ErrorLevel
While GetKeyState("LButton", "P"){
Click
Sleep 25
}
and about the ms delay, I couldn't find any script
I'm new doing scripts and stuff, hope u guys can help me, thanks in advance