Jump to content
Sign in to follow this  
amwmedia

Enumerating and HTML pulldown listbox

Recommended Posts

amwmedia

Yeah, the title says it all. Any ideas? There's a dynamic listbox that I need to cycle through. The list is of variable length.

Thanks,

Andrew

Share this post


Link to post
Share on other sites
this-is-me

1: You cannot "read" text from a webpage.

2: You cannot ControlSend to a webpage.

3: That means that you can only Send() things like a tab and hope you get the right number of tabs to go to the right item.

4: If the listbox items are listed in the sourcecode, then you can do an InetGet to download the source and parse it.


Who else would I be?

Share this post


Link to post
Share on other sites
amwmedia

1: You cannot "read" text from a webpage.

2: You cannot ControlSend to a webpage.

3: That means that you can only Send() things like a tab and hope you get the right number of tabs to go to the right item.

4: If the listbox items are listed in the sourcecode, then you can do an InetGet to download the source and parse it.

<{POST_SNAPBACK}>

interesting idea about downloading the source and parsing. Maybe I'll try it.

Just as an FYI, there's a much easier way to get to a form object on a website. You can

Send("{!d}");gets you to the address 
Send("javascript:form.formobject.focus()+{enter}");uses Javascript to focas on the form object

I've used this many times and it's great. You can also do things like

Send("javascript:form.formbutton.click()+{enter}");clicks the form button
Send("javascript:form.submit()+{enter}");submits the form

Thanks,

Andrew

Share this post


Link to post
Share on other sites
this-is-me

... and once au3 gets COM support, we won't even need javascript ...


Who else would I be?

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  

×