I cant get the exit button at the top right to exit. I think the function is GUI_EVENT_CLOSE but when i put it in my script it says unable to parse function call. Its the only thing i have put in so far... and i want to make it work with hotkeys. What should i do? Script: Opt('MustDeclareVars', 1) Bye() Func Bye() Local $msg GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd EndFunc