WinActivate("#unbelievaboat - Discord") HotKeySet("{F1}","stopScript") While(1) Sleep (30000) Send(">work") Send("{ENTER}") WEnd While(2) Sleep (31000) Send(">dep all") Send("{ENTER}") WEnd Func stopScript () msgbox (0, "Stopping script", "Script has been stopped.") Exit EndFunc