#include ;for COMMAND _isPressed Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("!{ESC}", "Terminate") ; "+!Q" = SHIFT + ALT + Q , + =SHIFT , ! =ALT #region --q- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=00000409) --- #region --- Internal functions Au3Recorder Start --- Func _Au3RecordSetup() Opt('WinWaitDelay',200) Opt('WinDetectHiddenText',1) Opt('MouseCoordMode',0) Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '') If $aResult[1] <> '00000409' Then MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & @CRLF & '(00000409->' & $aResult[1] & ')') EndIf EndFunc Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc _AU3RecordSetup() Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('////////////////Paused\\\\\\\\\\\\\\\\',550,339) WEnd ToolTip("") EndFunc Func Terminate() Exit ToolTip('Terminated',550,339) sleep(2000) EndFunc #endregion --- Internal functions Au3Recorder End --- ; Set the counter to 1 Local $iCount = 1 Do _WinWaitActivate("Little - Brave","") Send("{SHIFTDOWN}={SHIFTUP}{ENTER}{SHIFTDOWN}={SHIFTUP}{ENTER}") Until $iCount > 2 #endregion --- Au3Recorder generated code End ---