Jump to content

executing .au3 script, how to close it


Recommended Posts

Here's 6 ways to Exit... /edit, 7 ways actually.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

   $TESTExit = GUICreate               ("EXITTest", 275, 250, -1, -1, BitOR($WS_CAPTION, $WS_SYSMENU))
      $AltF4 = GUICtrlCreateLabel      ("Press ALT+F4 to exit", 10, 210)
$ContextMenu = GUICtrlCreateContextMenu()
$ContextExit = GUICtrlCreateMenuItem   ("Exit", $ContextMenu)
   $FileMenu = GUICtrlCreateMenu       ("&File")
   $FileExit = GUICtrlCreateMenuItem   ("Exit", $FileMenu)
 $ButtonExit = GUICtrlCreateButton     ("Exit", 150, 20, 100, 24)
               GUISetState             (@SW_SHOW, $TESTExit)
While 1
    Switch GUIGetMsg()
           Case $GUI_EVENT_CLOSE, $ButtonExit, $FileExit, $ContextExit
                Exit
    EndSwitch
WEnd

 

Edited by Werty

Some guy's script + some other guy's script = my script!

Link to comment
Share on other sites

5 minutes ago, Andreik said:

What's hidden from my eyes?

1. System menu / close

2. click "X" in the top rigth corner

3. filemenu/exit

4. click Exit button in gui

5. right-click for context menu / exit

6. ALT-F4

7. ESC

Edited by Werty

Some guy's script + some other guy's script = my script!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...