weirddave Posted February 3, 2009 Share Posted February 3, 2009 I lot of web pages have clickable buttons and other controls which I'd like to be able to click on with autoit, problem is, there's no control ID for them and the position in the window changes due to adverts of differing sizes. An example page is this one, at the bottom there are 2 drop down menus (skin selector and language). Any ideas? Link to comment Share on other sites More sharing options...
furrycow Posted February 3, 2009 Share Posted February 3, 2009 I lot of web pages have clickable buttons and other controls which I'd like to be able to click on with autoit, problem is, there's no control ID for them and the position in the window changes due to adverts of differing sizes. An example page is this one, at the bottom there are 2 drop down menus (skin selector and language). Any ideas? By name... _IEFormElementGetObjByName ( ByRef $o_object, $s_name [, $i_index = 0] ) name="skinselectorbox" name="langselectorbox" Instant Lockerz Invite - www.instantlockerzinvite.co.uk Link to comment Share on other sites More sharing options...
jvanegmond Posted February 3, 2009 Share Posted February 3, 2009 (edited) By name... _IEFormElementGetObjByName ( ByRef $o_object, $s_name [, $i_index = 0] ) Edited February 3, 2009 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
weirddave Posted February 3, 2009 Author Share Posted February 3, 2009 Ah, I see that the object names are in the page code. It's unfortunate that the page I'm looking at has a bunch of buttons where I can't see the name! The page code is way too big to post here. The page I'm looking at is a facebook application called robot builder Basically, there are a couple of buttons with the same text value, from what I can see they are each in a form, but the forms have no name, just an ID Here's one of the forms: <form method="POST" action="salvage.php?area=8" id="app37944961729_form_49884c9361a759c00393646"> <input type="hidden" name="fb_sig_locale" value="en_GB" /> <input type="hidden" name="pack" value="39" /> Times to Salvage: <select type="text" name="number"> <option value="1"> 1 </option> <option value="10"> 10 </option> </select> <input type="submit" style="width: 100px; float: right;" value="Salvage" /> </form> The button is labled Salvage as in the penultimate line in the code above. All the forms are like this. Note there is a dropdown menu with some options. Each form looks the same with the same name sections. The form id is different for each, but it looks randomly generated each time. Any thoughts on how I might go about cracking this one? 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