Code: Select all
tog:=0
SoundPlay, %A_ScriptDir%\Sounds\scriptactiver.mp3
if GetKeyState(key_Terminate)
{
SoundPlay, %A_ScriptDir%\Sounds\scriptdesactiver.mp3
sleep 4000
ExitApp
}
x::tog:=!tog
#If (tog)
Suspend, Toggle
SoundBeep, 800, 100
return
~$LButton::
While GetKeyState("LButton", "P"){
MouseClick ,Left,X,Y,3,0
Send {"}
Sleep 550
KeyWait, LButton, D
MouseClick ,Left,X,Y,3,0
Send {'}
Sleep 550
}
return
#If