I am using this myself
it keeps going from top right to bottom left (diagonal) but can't get it to stay dead straight
any ideas?
function OnEvent(event, arg)
OutputLogMessage("event = %s, arg = %d\n", event, arg)
if (event == "PROFILE_ACTIVATED") then
EnablePrimaryMouseButtonEvents(true)
elseif event == "PROFILE_DEACTIVATED" then
ReleaseMouseButton(2)
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then -- 3 = G3
recoil = not recoil
spot = not spot
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then -- 1 = G1
if recoil then
repeat
-- right
MoveMouseRelative(0,0)
Sleep(15)
-- left
MoveMouseRelative(-1, 2)
Sleep(15)
until not IsMouseButtonPressed(1)
end
end
end