Simbo0o Posted April 5, 2011 Share Posted April 5, 2011 (edited) I've looked all morning for a command found few but just cant get it right. I've made a script for a program but what I want to do is when the program is open it is starting to load some texts, at the last line I want a command to detect the line that it exist and then start the other process in the script.Been using Sleep till the window is fully oppened but sometimes it slows down and the process go boom... Edited April 5, 2011 by Simbo0o Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 5, 2011 Moderators Share Posted April 5, 2011 Simbo0o,when the program is open it is starting to load some textsWhat are these "texts" that you are loading? Are they in a web browser? 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...
Simbo0o Posted April 5, 2011 Author Share Posted April 5, 2011 No no it just loads to see the serent settings in the program the script is made for...at the end it says it is ready(with text) and I want a command to detect this line and then hit the button "start"...I just need a command to detect this line exists Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 5, 2011 Moderators Share Posted April 5, 2011 Simbo0o,That was not very enlightening. it says it is ready(with text) and I want a command to detect this lineWhat says "ready"? Which app are we talking about? Where does it say this? In a status bar? In an edit control? You need to be much more specific if you want help as the way to read the text is very much dependent on the app you are automating. 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...
GEOSoft Posted April 5, 2011 Share Posted April 5, 2011 Sounds like the user may be trying to store settings in a flat text file. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Simbo0o Posted April 6, 2011 Author Share Posted April 6, 2011 (edited) Here's what im talking about.There is a line at start that says "Bot is ready".I want the script to read this line and press Start.I need the command to detect this line. Edited April 6, 2011 by Jos Link to comment Share on other sites More sharing options...
smartee Posted April 6, 2011 Share Posted April 6, 2011 Please read this Link to comment Share on other sites More sharing options...
Recommended Posts