Sign in to follow this  
Followers 0
Brickoneer

Can't figure out what I need...

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0