hey!
i wanna make an ahk script for a game..
the script will be activated if scroll lock is down.
and Lbutton is autofire and antirecoil. Right mouse is shoot and Crouching.
i made it so, but don't know the next step:
Code:
gActivateScript = 0
~ScrollLock::
KeyWait, ScrollLock
GetKeyState, ScrollLockState, ScrollLock, T
If ScrollLockState = D
{
gActivateScript = 1
}
else
{
gActivateScript = 0
}
return
~LButton::
if gActivateScript = 1
{
Loop {
MouseClick, left,,, 1, D
Sleep, 5
MouseClick, left,,, 1, U
DllCall("mouse_event", uint, 1, int, -1, int, 1, uint, 0, int, 0)
GetKeyState, LButtonState, LButton, P
If LButtonState = U
break
Sleep, 5
}
}
return
~RButton::
if gActivateScript = 1
{
Loop {
MouseClick, Right,,, 2, D
Sleep, 4
MouseClick, Right,,, 0, U
GetKeyState, RButtonState, RButton, P
If RButtonState = U
break
Sleep, 4
}
}
return
pls help me.
Thanx.