Matticus08 Posted April 11, 2019 Share Posted April 11, 2019 How could I have my script exit once a certain string of text is on screen? Link to comment Share on other sites More sharing options...
Nine Posted April 11, 2019 Share Posted April 11, 2019 Depends on that specific screen. What application are you trying to read text from ? You could show a screen capture for example. Do you have any written code so far ? “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) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Matticus08 Posted April 11, 2019 Author Share Posted April 11, 2019 It's reading from the Discord app and I've made a loop to automate some basic commands to a bot inside discord, and need it to stop when the bot responds with a certain line of text. It's primitive but does what I need it to do so far, aside from stopping when I want it to which I have to idea how to do lol Sleep(5000) While 1 Send("owo h{Enter}") Sleep(1000) Send("owo b{Enter}") Sleep(14500) WEnd Link to comment Share on other sites More sharing options...
Matticus08 Posted April 11, 2019 Author Share Posted April 11, 2019 Well I should also add that the bot wouldnt work inside the actual Discord App, had to use the Discord browser client so I guess it would be reading from Chrome? Link to comment Share on other sites More sharing options...
Developers Jos Posted April 11, 2019 Developers Share Posted April 11, 2019 Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team 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. Link to comment Share on other sites More sharing options...
Recommended Posts