HotKeySet("{F8}", "Start") HotKeySet("{F5}", "_Exit") ;If you press ESC the script will stop While 1 Sleep(100) WEnd Func Start() While 1 send("{SPACE}") Send("d") Sleep("300000") send("{SPACE}") Send("a") Wend EndFunc Func _Exit() Sleep(100) Exit EndFunc ;==> _Exit()