Brickoneer Posted April 30, 2007 Posted April 30, 2007 Hey guys, I'm trying to create a script that automates an online game. All I really need it to do is fill a text field, hit a button, repeat. But, I ran into several problems: The button link changes every page, the position of the button changes and as has no ControlID. As far as I can tell, the only thing that stays the same would be the name / value (displayed text) of the button. Is it possible to create an automated button-clicker with only this information? I searched and searched but can't find a solution. ANY help would be appreciated. Brick
evilertoaster Posted April 30, 2007 Posted April 30, 2007 If the game is flashed based or somthing it may not use a standard html textbox control which means your left with using some pixel searches to try and locate the field... what's the link to the stie in question?
Brickoneer Posted May 1, 2007 Author Posted May 1, 2007 ok, I figured most of it out by telling it the coordinates that the button is supposed to be at, and hopefully by the color of the pixel determine where the button moved to and it all works fine.... for that one page. I know there is a way to look for a certain pixel, but is there a way to find a group of pixels? Such as a line, or a 60 px by 30 px box? or something similar? That would help me automate it much futher. Thanks for your help! Brick
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