I'm having a bit of trouble with a script I'm working on, I'm using a function to create a GUI and for some reason it won't close (by the X on title bar, by Alt+F4, by the task bar, or by right-clicking on the window). The only way I can get the GUI to close is by closing the script.
I want to know if there is something I can do to fix this.
Func _AGUI()
GuiCreate("TITLE", 273, 475)
GuiSetIcon(@SystemDir & "\mspaint.exe", 0)
GuiCtrlCreatePic("pic.jpg",0,0, 273,475)
GuiSetState()
EndFunc