Ok I read up on it and this is what I got but I get a error.
#include <Misc.au3>
$dll = DllOpen("user32.dll")
$ExitKey = '75'; ESC
HotKeySet ( "BD" [, "On"] )
HotKeySet ( "BB" [, "Off"] )
Func On()
While 1
Sleep(10)
If _IsPressed("01", $dll) Then MouseMove(640, 518, 100)
If _IsPressed($ExitKey, $dll) Then ExitLoop
WEnd
DllClose($dll)
EndFunc
Func Off()
While 1
Sleep(10)
If _IsPressed("01", $dll) Then MouseMove(0, 0, 0)
If _IsPressed($ExitKey, $dll) Then ExitLoop
WEnd
DllClose($dll)
EndFunc
Errors
>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\***\Desktop\recoil.au3"
C:\Users\***\Desktop\recoil.au3 (5) : ==> Error parsing function call.:
HotKeySet ( "BD" [, "On"] )
HotKeySet ( "BD" ^ ERROR
>Exit code: 1 Time: 0.212