retrothe80sninja Posted October 30, 2005 Share Posted October 30, 2005 I'm new to AutoIt but I'm already amazed as to what it can do. My question is this: I'm trying to write a script that makes the mouse click on certain text when it appears, like a particular hyperlink on a website. What I'm wondering is if there is a way I can make the script autodetect the location with coordinates like gettextcoord ("text") mouseclick("right", X, Y,") What I need to know is if there's a command for finding a certain text string and how I might go about doing this. Sorry if this post is a bit odd sounding, I'm pretty tired right now but I wanted to post this before going to sleep. Link to comment Share on other sites More sharing options...
peethebee Posted October 30, 2005 Share Posted October 30, 2005 Hi! just compare several points of your text via Pixelgetcolor or the hole string via pixelchecksum. peethebee vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Link to comment Share on other sites More sharing options...
Confuzzled Posted October 30, 2005 Share Posted October 30, 2005 Be specific: Are you actually wanting to follow a link in a browser window or are you wanting to find some pixel text on another type of screen? What program will your script be 'reading'? Link to comment Share on other sites More sharing options...
retrothe80sninja Posted October 30, 2005 Author Share Posted October 30, 2005 Ok, I got the color one to work alright, but I'm still looking for the text. Confuzzled, I'm really just trying to learn how to use AutoIt right now so I'd have to say some pixel text on another screen, I plan on someday, if I get good, to use this for making game scripts. I was just using the hyperlink as an example, perhaps that was a bad idea. Link to comment Share on other sites More sharing options...
Shinies Posted October 30, 2005 Share Posted October 30, 2005 Maybe you want to search around for the _IE functions. Link to comment Share on other sites More sharing options...
Confuzzled Posted October 31, 2005 Share Posted October 31, 2005 Maybe you want to search around for the _IE functions. Alternatively, (if I understand you right) you may want to search for terms such as OCR and WOW - there is a lot of games bot activity in these forums.Good luck! 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