Jump to content

Recommended Posts

Posted (edited)

i would like to close a script in the form  testscript.au3

is there a way to do this

the way i do it now is go to the tray

locate testscript.au3

and click exit

 

 

Edited by serena_knight
Posted (edited)

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!

Posted (edited)
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!

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
  • Recently Browsing   0 members

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