Sign in to follow this  
Followers 0
feldmaneyal

html push button

2 posts in this topic

I have in a web page 3 button with the same name - how can select a specific one?

html push button (Select all).

Thx

eyal

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Web Pages are not really controls, as they are created kinda on the fly from your browser. If you look at it with AutoIt Spy, you will notice there is no change in last control as you hover over the buttons. I like to use the find feature, and pixel color.

If you have two buttons, you might try to target the text before or after the button, and then esc out of the find popup, and tab or alt tab and hit space.

You can use all keyboard commands on almost any webpage(image maps, and flash excluded.)

The second option is using mouse locations, and pixel searching.

Html pages usually change thier name when refreshed, so I use WinSetTitle ( "HiddenSoft", "", "waiting for refresh" ) right before I push the button. That way I can do a simple winwait command to know when the info comes back. (make sure all on the same page.)

This for instance should hit the reply funtion, if you were viewing a post here.

Winwaitactive("HiddenSoft Forums")
send("^f")
winwaitactive("Find")
send("v3 Support{enter}")
sleep(1000)
send("{esc}")
send("{tab}{enter}")

Edit.. messed up my quotes a sec there

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

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