Sign in to follow this  
Followers 0
Guest TheThumper

Controlling Website Controls

6 posts in this topic

I have never tried using AutoIt for working with a website till tonight and ran into a little problem. I need to click a button, I was using Send("{TAB}") to move around and Send("{ENTER}") to select but I found that the site that I am trying to navigate has varying items to tab through so on one visit it may take 3 tabs and on another visit it may take 10. From what I remember you don't want to try and use mouse position either (plus this button will tend to move on the web page anyway)

I am pretty new to AutoIt, is there any suggestions for my problem?

thanks!

Share this post


Link to post
Share on other sites



I have never tried using AutoIt for working with a website till tonight and ran into a little problem.  I need to click a button, I was using Send("{TAB}") to move around and Send("{ENTER}") to select but I found that the site that I am trying to navigate has varying items to tab through so on one visit it may take 3 tabs and on another visit it may take 10.  From what I remember you don't want to try and use mouse position either (plus this button will tend to move on the web page anyway)

I am pretty new to AutoIt, is there any suggestions for my problem?

thanks!

<{POST_SNAPBACK}>

your only option is COM functions which you need the lastest beta to run.

[font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font]

Share this post


Link to post
Share on other sites

Well i could maybe whip somehting up for you if you provide webpage, desired button, etc.


I hope you know what a spoiler is...[u]"title WOOPS:Var_start "WOOPS" %0goto Var_"-A true n00b at work[/u]

Share this post


Link to post
Share on other sites

I have never tried using AutoIt for working with a website till tonight and ran into a little problem.  I need to click a button, I was using Send("{TAB}") to move around and Send("{ENTER}") to select but I found that the site that I am trying to navigate has varying items to tab through so on one visit it may take 3 tabs and on another visit it may take 10.  From what I remember you don't want to try and use mouse position either (plus this button will tend to move on the web page anyway)

I am pretty new to AutoIt, is there any suggestions for my problem?

thanks!

<{POST_SNAPBACK}>

Yes, this is a fundamental function, that seems to be missing generally, not with just AutoIt: read the object having the current focus in a webpage.

I was planning to use some mixture of Pamie, AutoIt, or Watsup to automate a javascript infested browser page. I planned to do this:

-go to the page (using COM )

-send a tab to go to the next control in the browser, and then more tabs to go to different links in the page

-continue sending tabs until the target link is found, while checking after each tab the text of the link with the focus until the right one is hit.

I can send tabs easily enough, but how can I get the text of the link that has the focus?

I don't seem to be able to do that with any of these tools, though I'm still exploring. Since the page I am automating is generated by the page's javascript, any test for the links of the frames does not seem to work in Pamie. (Not sure why that is...)

AutoIt has ControlGetFocus, and ControlCommand, but so far it seems that they follow the cursor, not the focus that the tab generates. [i need more testing here to understand how these work.]

This should really be a simple thing, but for the moment it has me stumped as well. Of course, I have been looking at these tools for only about a week.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

get the latest BETA and check out what Dale Hohm is up to HERE

Edited by quaizywabbit

[u]Do more with pre-existing apps![/u]ANYGUIv2.8

Share this post


Link to post
Share on other sites

get the latest BETA and check out what Dale Hohm is up to HERE

<{POST_SNAPBACK}>

Thanks! I think this is just what I needed....

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