adz89 Posted July 6, 2008 Share Posted July 6, 2008 Hi all!First of all, I know everything else that I have to do, but there is one thing that is stopping me finishing my script...I need to know how I would click on some buttons, their all different, and DEBUG bar is telling me this about them all:The First button to be clicked = <DIV class="spot manager" m="36"></DIV>The Menu after clicking the button = <A href="?q=map/16~19/manager.rob&z=9gtE">Steal the Laptop</A>First Arrow = <A class=east href="?q=map/17~19&z=9gtE"> </A>Second Arrow = <A class=north href="?q=map/16~20&z=9gtE"> </A>Thank you in advance! Self confessed noob... Link to comment Share on other sites More sharing options...
TomZ Posted July 6, 2008 Share Posted July 6, 2008 (edited) <DIV class="spot manager" m="36"></DIV> There's nothing clickable about that. For the other links, this is an example from the helpfile: ; ******************************************************* ; Example 1 - Open browser with basic example, get link collection, ; loop through items and display the associated link URL references ; ******************************************************* ; #include <IE.au3> $oIE = _IE_Example ("basic") $oLinks = _IELinkGetCollection ($oIE) $iNumLinks = @extended MsgBox(0, "Link Info", $iNumLinks & " links found") For $oLink In $oLinks MsgBox(0, "Link Info", $oLink.href) Next You can expand upon that, and click the links by their href property. Edited July 6, 2008 by TomZ Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 7, 2008 Share Posted July 7, 2008 Hi all!First of all, I know everything else that I have to do, but there is one thing that is stopping me finishing my script...I need to know how I would click on some buttons, their all different, and DEBUG bar is telling me this about them all:The First button to be clicked = <DIV class="spot manager" m="36"></DIV>The Menu after clicking the button = <A href="?q=map/16~19/manager.rob&z=9gtE">Steal the Laptop</A>First Arrow = <A class=east href="?q=map/17~19&z=9gtE"> </A>Second Arrow = <A class=north href="?q=map/16~20&z=9gtE"> </A>Thank you in advance!Actually, DebugBar tells you a lot more than just that. What you posted is only the HTML code of the individual element. What you need is the full path in the DOM, which includes the Frame\Form\Table\etc. that the element is contained in. muttley Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
adz89 Posted July 7, 2008 Author Share Posted July 7, 2008 And how would I use that information, or would you need to see it first? Self confessed noob... Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 7, 2008 Share Posted July 7, 2008 And how would I use that information, or would you need to see it first?You need to "drill down" to the element you want. There are many examples in the help file under the _IE* functions. For example, _IEFrameGetCollection() for getting a reference to the frame, then _IEFormGetCollection() to get a form in that frame, then _IETableGetCollection() for the table, etc. But that is all very context specific to the page you are working on.Try out the examples in the help file. muttley Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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