Karasu 0 Posted October 9, 2007 Hi, I'm sorry for being a trouble but I have spent days trying to find some solution in the Forum and in the Help with no success. I need to be able to check if a certain text appeared in the window in which the script is working, actually I know after which step there's a chance for an error message appearing in that window and somehow I need to detect that message. I was thinking about pixelsearch but maybe there is a more suitable function or workaround I have not yet been able to find. Any help, idea or advice if highly appreciated. All the best, Karasu Share this post Link to post Share on other sites
Jos 2,281 Posted October 9, 2007 Not a BUG report. Support questions belong in the Support forum. 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. Share this post Link to post Share on other sites
PsaltyDS 42 Posted October 9, 2007 (edited) Perhaps: If StringInStr(WinGetText($WinTitle), $sSearchString) Then ; String found, do something about it! EndIf Edit: Had to fix StringInStr before SmOke_N sees it and makes fun of m... DOH! Edited October 9, 2007 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Share this post Link to post Share on other sites
SmOke_N 211 Posted October 9, 2007 Perhaps: If StingInString(WinGetText($WinTitle), $sSearchString) Then ; String found, do something about it! EndIfoÝ÷ Ûú®¢×®Ë«xýË«{*.æ§jëh×6StringInStr(WinGetText($WinTitle), $sSearchString) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Share this post Link to post Share on other sites
Karasu 0 Posted October 9, 2007 I promise to pay more attention on where I open a new topic. I'm really sorry about messing with the bug report. Thanks for all your help, as I suspected the solution is rather simple (for those coding for years), but I would have never found it out by myself in the time given:D Tomorrow I can try it, finish my script, and get some time to learn the helpfile by heart. Great! Cheers, Karasu Share this post Link to post Share on other sites
Karasu 0 Posted October 10, 2007 Hi, tried it and sadly it does not read the contents of the window, only the texts of the window itself. (like "File", "Edit", "View", "Favorites")..I can't really think of anything else, but I think I'll get hold of the bl**dy cursor, copy the whole stuff in front of me, and search that dump for the error code. Difficult workarounds are the side effects of messing with a mainframe. yuck. Thanks to everyone. Karasu Share this post Link to post Share on other sites
Xenobiologist 47 Posted October 10, 2007 Hi, do you have an 3270 emulation window? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Share this post Link to post Share on other sites