The .AHK script is right here! ready to run: http://www.mediafire.com/?abw7dnz45ol...
Grab Autohotkey basic here: http://www.autohotkey.com/download/
List of autohotkey key names: http://www.autohotkey.com/docs/KeyLis...
Home key turns the macro on and off in-game. You can edit the sleep number in the macro to create the right timing. The macro is set to left mouse button; if you want to change it just change the Lbutton's in the macro to whatever key you would prefer. Also don't assign the macro to a key you have set to something else such as prone.
_____________________________________
#SingleInstance
ActivateScript = 0
GroupAdd, ActiveWindow, ahk_class IW4
GroupAdd, ActiveWindow, ahk_class CoD4
; Home key to activate the macro
~Home::
KeyWait, Home
GetKeyState, HomeState, Home, T
If HomeState = D
{
ActivateScript = 1
}
else
{
ActivateScript = 0
}
return
~LButton::
if ActivateScript = 1
{
Loop
{
;Make sure CodMW2 window is the active window. Don't want weird mouse behaviour appearing at other window
IfWinActive, ahk_group ActiveWindow
{
GetKeyState, LButtonButtonState, LButton, P
If LButtonButtonState = D
{
Send, {LButton down}
Sleep, 71
Send, {LButton up}
}
If LButtonButtonState = U
{
;break the loop if physical state of LButton is up.
break
}
}
else
{
break
}
}
}
exit
return