Here is my code:
Code: Select all
Suspend, on
pause, on
#NoEnv
#NoTrayIcon
#SingleInstance ignore
SendMode Input
*~$LButton::
while GetKeyState("LButton")
{
DllCall("mouse_event", uint, 1, int, 0, int, 2, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0, int, 2, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0, int, 2, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0, int, 2, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0.5, int, 1, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0, int, 2, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 1, int, 1, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 1, int, 1, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0, int, 2, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0.5, int, 1, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0)
Sleep, 1
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0)
Sleep, 1
}
Return
*~$i::
Suspend
Pause,,1
return
*~$SC003::
Suspend,off
pause, off
return
*~$"::
Suspend,on
pause,on
return
*~$'::
Suspend,on
pause,on
return
*~$&::
Suspend,on
pause,on
return
I made this no recoil from a random source for a game and it work well!!
But when i transfer the file on my wife's computer, the mouse mouvement is totally different and stronger, so it's annoying because the crosshair going too much at the ground.
So i want to know why it's different on her computer and how can i fix this?
Thank you in advance!
Moderator Note: Moved to Ask for Help. ~ sinkfaze