goldieczr Posted January 14, 2022 Posted January 14, 2022 I have a script that does a series of clicks over a couple minutes. Sometimes it messes up and it needs to be stopped but I haven't coded a way to stop so it just keeps going clicking around the screen until it ends. What can I do to stop it once I press a key?
Werty Posted January 14, 2022 Posted January 14, 2022 Post your script Some guy's script + some other guy's script = my script!
goldieczr Posted January 14, 2022 Author Posted January 14, 2022 1 minute ago, Werty said: Post your script https://prnt.sc/26drbb0 - really nothing complicated, pretty much the same function repeated over and over with different coordinates. However, some are way longer than the one presented.
Moderators Melba23 Posted January 15, 2022 Moderators Posted January 15, 2022 goldieczr, When you post code in future please use Code tags to get a scrolling box and syntax colouring - see here how to do it. Thanks in advance for your cooperation. 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
Nine Posted January 15, 2022 Posted January 15, 2022 One quick and dirty way is to restart a new occurrence of the script and exit the current script : #include <Constants.au3> HotKeySet("{END}", Restart) HotKeySet("{ESC}", _Exit) If Not @Compiled Then Exit MsgBox($MB_SYSTEMMODAL, "Error", "Script must be compiled !") While True MouseMove(Random(100, 500, 1), Random(100, 500, 1)) Sleep(500) WEnd Func Restart() Run(@AutoItExe) Exit EndFunc Func _Exit() Exit EndFunc “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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