Код:
#include <Misc.au3>
Global $paused
Opt("SendKeyDownDelay", 50)
HotKeySet("{f2}","fu")
While 1
Sleep(200)
WEnd
func fu ()
$Paused = NOT $Paused
While $Paused
Sleep(10)
If _IsPressed('02') Then
Sleep(10)
Send("3")
Sleep(10)
Send("1")
endif
WEnd
endfunc