serena_knight Posted April 30, 2024 Posted April 30, 2024 (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 April 30, 2024 by serena_knight
Developers Jos Posted April 30, 2024 Developers Posted April 30, 2024 HotKeySet() ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Andreik Posted April 30, 2024 Posted April 30, 2024 Or post your testscript.au3 so we don't have to make a blind guess.
Werty Posted April 30, 2024 Posted April 30, 2024 (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 May 2, 2024 by Werty Some guy's script + some other guy's script = my script!
Andreik Posted April 30, 2024 Posted April 30, 2024 8 minutes ago, Werty said: Here's 6 ways to Exit... /edit, 7 ways actually. I can count 5 ways. What's hidden from my eyes?
Werty Posted April 30, 2024 Posted April 30, 2024 (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 April 30, 2024 by Werty Andreik 1 Some guy's script + some other guy's script = my script!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now