Zefed Posted April 1, 2015 Share Posted April 1, 2015 Hello! I wonder if we can stop/pause(to start at the beginning or paus as in tray) the script use button? (without using hotkey and without leaving the gui!) I searched the forum but found only from hotkey but i'm interested button (sorry for my bad English.. I must use translator ) Link to comment Share on other sites More sharing options...
JohnOne Posted April 2, 2015 Share Posted April 2, 2015 Hello! I wonder if we can stop/pause(to start at the beginning or paus as in tray) the script use button? (without using hotkey and without leaving the gui!) I searched the forum but found only from hotkey but i'm interested button (sorry for my bad English.. I must use translator ) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Zefed Posted April 2, 2015 Author Share Posted April 2, 2015 This is not working for me. (You probably do not know how this applied) No exit loop. When the script runs at all as if gui crashes.. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 2, 2015 Moderators Share Posted April 2, 2015 Zefed,Post the code you are using - see here how to do it. 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 Link to comment Share on other sites More sharing options...
Zefed Posted April 2, 2015 Author Share Posted April 2, 2015 (edited) expandcollapse popup#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Test", 295, 274, 256, 124) $Spam = GUICtrlCreateEdit("", 8, 104, 273, 161) $Start = GUICtrlCreateButton("Start", 8, 64, 131, 33) $Stop = GUICtrlCreateButton("Stop", 152, 64, 131, 33) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### HotKeySet("{Esc}","stop") Func stop() Exit EndFunc While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Stop Case $Start $SpamRead = GUICtrlRead($Spam) Sleep(3000) while 1 Send($SpamRead) Send("{enter}") Sleep(600) WEnd EndSwitch WEnd Ok, Im write this for test. Edited April 2, 2015 by Zefed Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 2, 2015 Moderators Share Posted April 2, 2015 Zefed,$Spam = GUICtrlCreateEditJust what are you intending to spam with this script? 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 Link to comment Share on other sites More sharing options...
Zefed Posted April 2, 2015 Author Share Posted April 2, 2015 I do not know - I wrote a mini-spam bot(?) because it came first to mind. Even checked on yt but there are the same hotkeys Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 2, 2015 Moderators Share Posted April 2, 2015 Zefed, I do not know - I wrote a mini-spam bot(?) because it came first to mindA strange choice for a first script - and not something we would want to support. Please start a new thread when you have a less-controversial project in mind - this one is closed. 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 Link to comment Share on other sites More sharing options...
Recommended Posts