#include HotKeySet("{HOME}", "_Exit") $hGUI = GUICreate("Bot na siłownie LS-Stories", 300, 50) $hLabel = GUICtrlCreateLabel("Działa! Aby wyjść naciśnij HOME." & @LF & "Autor: JoaqX3" & @LF & "Data wydania: 16.01.2018", 10, 10) GUISetState() While 1 While Sleep(1000) Send('{Space down}') Sleep(1700) Send('{space up}') Wend Switch GUIGetMsg() Case $GUI_E VENT_CLOSE Exit EndSwitch WEnd Func _Exit() MsgBox(0, "Bot na siłownie LS-Stories", "Do następnego razu! :)") Exit EndFunc