wimhek Posted November 1, 2009 Posted November 1, 2009 Hi Can I cancel a running, compiled (GUI) script with a button ? I looked at Hotkeyset, but is there another option ?
AwAke Posted November 1, 2009 Posted November 1, 2009 HiCan I cancel a running, compiled (GUI) script with a button ? I looked at Hotkeyset, but is there another option ?GUISetAccelerators?
Moderators Melba23 Posted November 1, 2009 Moderators Posted November 1, 2009 wimhek, You have already got a topic running on this! Can I cancel a running, compiled (GUI) script with a button ? I looked at Hotkeyset, but is there another option ?Via a button in / on the GUIThis is how you close a GUI with a button on the GUI: #include <GUIConstantsEx.au3> $hGUI = GUICreate("Test", 500, 500) $hButton = GUICtrlCreateButton("Exit", 10, 10, 80, 30) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $hButton Exit EndSwitch WEnd Please do not take this the wrong way, but if you do not know how to do this simple thing in AutoIt, may I suggest the excellent tutorials that you will find here and here. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
AwAke Posted November 1, 2009 Posted November 1, 2009 Oh my bad, I thought he ment exit the program via a hotkey, I guess I should of looked at it properly instead of the HotKeySet function he mentioned.
Developers Jos Posted November 1, 2009 Developers Posted November 1, 2009 Don't start a new thread on the same topic. *click* 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.
Recommended Posts