NSearch Posted April 22, 2005 Share Posted April 22, 2005 I am trying to click a specific button on a page, the only problem that I am having is that the button could be at different locations on the page each time the page is viewed, depending on how many records are retreived. I also can not tab to the button, because depending on how many records a retreived there are additional check boxes added. Any suggestions. I have tried to do a page down first with the hopes that the button would be in the same location every time, but that didnt work either. Thanks. Link to comment Share on other sites More sharing options...
MarkMarkMark Posted April 22, 2005 Share Posted April 22, 2005 Controlclick it. Get the classname with AU3INFO.exe located in your autoit dir. Link to comment Share on other sites More sharing options...
NSearch Posted April 22, 2005 Author Share Posted April 22, 2005 If you have an example, would you please post it. Thank you. Link to comment Share on other sites More sharing options...
MarkMarkMark Posted April 22, 2005 Share Posted April 22, 2005 ControlClick ( "title", "text", controlID [, button] [, clicks]] ) Controlclick( "window name", "text", "Button2") ? Link to comment Share on other sites More sharing options...
NSearch Posted April 22, 2005 Author Share Posted April 22, 2005 I know that this is fairly simple, The only problem is that the Active Window Info did not help me. So I viewed the source code, and I hope that I will be able extract the button name, and info. Thank you for your replies. Link to comment Share on other sites More sharing options...
NSearch Posted April 22, 2005 Author Share Posted April 22, 2005 It is not actually a button, but an image. <input alt="Continue" border="0" src="/img/1.gif" name="BUTTON_CONTINUE" type="image" height="1" width="1"> Can I control click an image? Link to comment Share on other sites More sharing options...
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