RichardNeedsHelp Posted February 3, 2009 Share Posted February 3, 2009 Hello AutoitScriptForum, I have a question... How would I do something like...... if certain words are on a certain screen then... my autoit application will do something? THIS IS URGENT!!! Thank you. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 3, 2009 Moderators Share Posted February 3, 2009 (edited) Hello AutoitScriptForum,I have a question... How would I do something like...... if certain words are on a certain screen then... my autoit application will do something?THIS IS URGENT!!!Thank you.You'd start by learning how to ask a question properly giving every bit of information readily available to you... Rather than asking such a broad question that you'd get either zero (because no one likes to answer that the poster didn't have enough respect to actually think out to post) or a ton of responses that you'd only have questions to on them because no one knows what you really want.Then once you've thought of what it is you'd want to actually accomplish, you'd look in the help file for functions that may help in what you need. Then after that, you start to code something.Now you've spent a few days with AutoIt, if you're stuck then... Then is when you ask your well thought out and articulated question.Edit:BTW, you shouldn't spend so much time on warez sites ... Edited February 3, 2009 by SmOke_N 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. Link to comment Share on other sites More sharing options...
RichardNeedsHelp Posted February 3, 2009 Author Share Posted February 3, 2009 (edited) You'd start by learning how to ask a question properly giving every bit of information readily available to you... Rather than asking such a broad question that you'd get either zero (because no one likes to answer that the poster didn't have enough respect to actually think out to post) or a ton of responses that you'd only have questions to on them because no one knows what you really want.Then once you've thought of what it is you'd want to actually accomplish, you'd look in the help file for functions that may help in what you need. Then after that, you start to code something.Now you've spent a few days with AutoIt, if you're stuck then... Then is when you ask your well thought out and articulated question.Calm down.I looked everywere and I've spent like what... 3 weeks? with autoit.If you can't help, then don't post in my topic. -.-I was asking how can I make AutoIT do something everytime certain words pop up in Notepad.Edit: How do you know I go on warez sites... lol Edited February 3, 2009 by RichardNeedsHelp Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 3, 2009 Moderators Share Posted February 3, 2009 Calm down.I looked everywere and I've spent like what... 3 weeks? with autoit.If you can't help, then don't post in my topic. -.-I was asking how can I make AutoIT do something everytime certain words pop up in Notepad.See that's the thing, I can help.And the best part, I'm a Moderator, I have the pleasure of posting in any topic I see fit to (whether they appreciate it or not).And we were supposed to know you were working in Notepad?What code have you tried to accomplish with?Notepad is easy, use AutoItInfo.exe and get the ClassNameNN or ControlID .... Then use ControlGetText(). 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. Link to comment Share on other sites More sharing options...
Golbez Posted February 3, 2009 Share Posted February 3, 2009 *cough* HELPFILE *cough* Link to comment Share on other sites More sharing options...
RichardNeedsHelp Posted February 3, 2009 Author Share Posted February 3, 2009 (edited) See that's the thing, I can help.And the best part, I'm a Moderator, I have the pleasure of posting in any topic I see fit to (whether they appreciate it or not).And we were supposed to know you were working in Notepad?What code have you tried to accomplish with?Notepad is easy, use AutoItInfo.exe and get the ClassNameNN or ControlID .... Then use ControlGetText().Ok well.... so far I have;Created by RichardWinWaitActive("THE NOTEPAD window. I WILL FILL IN THIS PROPERLY LATER")ControlGetText ( "THE NOTEPAD window... I WILL FILL IN THIS PROPERLY LATER", "test", controlID )Also.. I didn't know that you guys needed to know that I'm working in Notepad.I'm using AutoItInfo.exe.... and I can't find out how to find out the ControlID. I use the Finder tool put it on the window... and well I don't know where exactly I can find it.I want it so like... depending on the text which in this case it's 'Test' it will do something.. maybe multiple functions? No idea. Edited February 3, 2009 by RichardNeedsHelp Link to comment Share on other sites More sharing options...
Golbez Posted February 3, 2009 Share Posted February 3, 2009 well notepad has to be open when you use the info tool and then click the window then freeze the info tool and read everything it outputs and you should get your controlid Link to comment Share on other sites More sharing options...
Zedna Posted February 3, 2009 Share Posted February 3, 2009 $text = ControlGetText ( "THE NOTEPAD window... I WILL FILL IN THIS PROPERLY LATER", "", "Edit1" ) If $text = 'something' Then ... Also don't miss AutoIt's helpfile "c:\Program Files\AutoIt3\AutoIt.chm" Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
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