Jump to content

Dephy

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Dephy

  1. Awesome! It worked, thanks.
  2. Here's most of the code, I can't show it all though. I still can't close the window with this code either. #include <GuiConstantsEx.au3> #include "GUIConstants.au3" While 1 HotKeySet("+a", "_AGUI") WEnd Func _AGUI() GuiCreate("TITLE", 100, 400) GuiSetIcon(@SystemDir & "\mspaint.exe", 0) GuiCtrlCreatePic("pic.jpg",0,0, 100,400) GuiSetState() While 3 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd EndFunc
  3. The original code what only a bit of the original, but that is the entire code that has to do with the GUI. The GUI is part of a function which is called by a hot key. I just tried the code, it doesn't work, as I'm not using a loop. The GUI is part of a function and doesn't have a loop. I tried removing the "ExitLoop" and it still won't close. I tried making a loop and it just continually opens the window
  4. 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
×
×
  • Create New...