Jump to content

misjdd

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by misjdd

  1. I think i got it fixed. Change both of the "int_ptr" items in the injector to "ptr*" JD
  2. cross-domain security issue ... I am having the same problem.
  3. Is there a way to grab an iframe source of a page in firefox using ff.au3? I know not much support is available but any help would be great. I don't even see how to grab the frame as an object and then get the source using the *.src item... thoughts?
  4. OK, there is definately something wrong with the code here. I use the following: $mf = _IEGetObjById($oie,"mainFrame") $items = _IETagNameGetCollection($mf,"div") for $item in $items $test = _IEPropertyGet($item,"outertext") if $test = 'REFRESH' Then $refe = $item _ieaction($refe, "click") ConsoleWrite(_IEPropertyGet($item,"outerhtml")& "clicked" &@crlf) ExitLoop EndIf It Finds the REFRESH button, but when $refe is assigned, it gets assigned another page element instead of the element containing REFRESH. It is assigning an element from a different table.
  5. I think i found the issue, and maybe it is a bug with ie.au3? I wrote some code to print each item of the table. Here is what is happening. It starts out ok, but there is a Table nested inside of the table BEFORE the TD element I want to read. The script reads the beginning of the outer table, reads the nested table, and then loses its ability to continue reading tag elements from the outer table... However, when I go up a layer and read the Tag items from the mainframe, it sees it ok. There is something not right with the table being drilled down like that...
  6. OK, one more question then I will be done (i hope!) Here is the structure for what I want to click (not in a frame or anything) <html> <body> <div id = mainframe> <div> <table> <tbody> <tr> <td> For some reason when I try to drill down to the table, I am getting the collection of 33 tables on the page, not just the one i want. $framesrc = _IEGetObjById($oie, "mainFrame") $headerdiv = _IETagnameGetCollection( $framesrc , "div", 0) $table = _IETableGetCollection($headerdiv,0) $oInputs = _IETagNameGetCollection($table,"td") For $oInput In $oInputs $test = _iepropertyget($oInput, "innerhtml") if $test = "RESFRESH" then $refresh = $oInput Next _ieaction($refresh, "click") thoughts? $cnt = @extended msgbox(0,0,$cnt)
  7. Actually I got it now: $oInputs = _IETagnameGetCollection( $oie , "span") For $oInput In $oInputs $test = _iepropertyget($oInput, "innerhtml") if $test = "Hit List" then $hit = $oInput if $test = "Main" then $main = $oInput if $test = "Hospital" then $hospital = $oInput if $test = "Attack" then $attack = $oInput if $test = "Fight" then $fight = $oInput if StringInStr($test, "Heal yourself") then $healyourself = $oInput if $test = "Bank" then $bank = $oInput if $test = "Deposit" then $deposit = $oInput Next I am having trouble grabbing a DIV item, but I think I get the concept enough to figure it out on my own. Thanks Dale for your help!
  8. OK that worked! I found that I do not need to drill down into the mainframe DIV or the tabsDiv DIV items either... I do have another challenge and that is that the other location I need to click is inside of the following structure: <DIV> <DIV> <DIV> <TABLE> <TBODY> <TR> <TD> <DIV class=buttonDiv> <A class="button button_blue" href="#"> <SPAN>Attack This page has hundreds of DIVs and SPANs so I am wondering if I can get the tag by class somehow? Hopefully other people who read this can get a better feel for how to use the AWESOME IE.au3 features too! THanks again!
  9. OK... I did that and it works! But I still don't see how to "click" the control I am trying to drill to... here is the structure according to DebugBar: <document> <html> <body> <DIV class=mainFrame id=mainFrame> <DIV class=tabContainer> <DIV id=tabsDiv> <table> <tbody> <tr> <td> <SPAN class=selectedTab style="CURSOR: pointer" jQuery1224424411281="14">Main</SPAN> Now... here is a snippet of my code: $mainFrame = _IEGetObjById($oFrame,"mainFrame") $Tabs = _IEGetObjById($mainFrame,"tabsDiv") When I do the _IETableGetCollection on the $Tabs ... It sees the table... but how can I simulate a click onto the Span item? Thanks in advance!
  10. OK. I have read several forums and posts and I am still a little short on knowledge for how to do this. I want to do an _IELinkClickByText on a link inside of an Iframe whose source is on a different domain. From what I understand, I can open the source of the Iframe in a new window (this works OK) to avoid the DOM security issue of cross domain scripting. However, when the source is opened, I still get access denied errors. I am not going to bother posting my code because it is certainly not even close to correct, but can someone give me an example of code for the following scenario? The main page has 3 frames... FRAME2 is the one with the content i want to access FRAME2 has a form on it... lets call it FORM1 Inside that form is an iframe whose source is on a different domain ... lets call the iframe IFRAME1 The links that I want to access are inside of the Iframe ... LINK1 LINK2 LINK3 So basically I am asking for code or pseudo code to access those links, assuming that there is not some inherited security issue. Thanks in advance. I am VERY new to the IE.au3 code so it is still foggy in my head. Everyone hates newbs, I know
  11. I cannot seem to be able to grab the source of the iFrame you are referring to. Have you had any luck? I would like to create a script that auto heals my Mobster and this seems like the most reliable way to do it. Can anyone help? To clarify, I need to understand the logic of the script. You grab the form element by ID and get the Iframe.src. Then IENavigate to the source of the I frame and from there I should be able to manipulate a click onto the Hospital button? Thanks!
×
×
  • Create New...