Jump to content

rejectpenguin

Active Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by rejectpenguin

  1. This is a good solution, but isn't going to work in my case as I have no way to get the controlid of the window im using.
  2. Is there a way to send a number to a window regaurdless of if I have the shift key pressed down or not? ControlSend(windowName, "", "", "20");
  3. Im probably off on this but usually when logging into a site you using a get or even a post method the url would be similar to this. http://www.site.com?username=blah&password=pw123 Im not sure if this will work in your case.
  4. You could use StringInStr. If StringInStr($sText,"google",0,3) then msgbox(0,0,"good")
  5. I put _IEErrorHandlerRegister() at the beginning of the script and now it shows no errors. So I guess the only error was not having an error handler! Thanks!
  6. Oy, apparently it doesn't like me using the COM I am now getting spammed with errors if I try and use the $oIE object. --> IE.au3 V2.4-0 Warning from function internal function __IEIsObjType, Cannot register internal error handler, cannot trap COM errors (Use _IEErrorHandlerRegister() to register a user error handler) _IENavigate($oIE,"http://www.wowarmory.com/character-sheet.xml?r=Anub%27arak&n=Lovepenguin") _IELoadWait($oIE) $oXML = $oIE.document.XMLDocument ... _IENavigate($oIE,"http://www.google.com")
  7. After going through quite a few COM objects after not even knowing what COM objects were at first I figured out that a simple method would be to use the XMLDocument COM. Then use the XMLDomWrapper library. $oXML = $oIE.document.XMLDocument _XMLFileOpen($oXML) Simple and it works awesome!
  8. I tried searching but couldn't find any relevant information that was helpful to me. Im trying to get the xml off a currently loaded IE page but can't seem to figure it out. $oIE = _IEAttach("The World of Warcraft Armory") _IENavigate($oIE,"http://www.wowarmory.com/character-sheet.xml?r=Anub%27arak&n=Lovepenguin") _IELoadWait($oIE) How can I get the xml of the oIE object. _IEDocReadHTML just gives the html of the page not the xml. Also I have to use the oIE object because I need the xml of the page after someone has logged in. So if we create a new object it won't have the user already logged in.
  9. Hey, is there a way I can use _IEGetObjById without knowing the full name of the id. I have bb_950858962 bb_950858961 bb_950858960 bb_950858959 I want everything that matches bb_ to get put in an array kinda like it would be with _IETagNameGetCollection.
  10. So, is it better to keep rediming an array or to just make a huge array with options you wont use?
  11. Ok, here is some code that I would like to use through a proxy. Is there anyway to do this? #include <_XMLDomWrapper.au3> #include <File.au3> Global $oXML = ObjCreate("Microsoft.XMLHTTP") $oXML.Open("GET", "http://www.wowarmory.com/character-sheet.xml?r=Anub%27arak&n=Lovepenguin", 0) $oXML.Send Global $sFile = _TempFile(@TempDir, '~', '.xml') FileWrite($sFile, $oXML.responseText) If _XMLFileOpen($sFile) Then Local $sLvl = _XMLGetAttrib('./characterInfo/character', 'level') ConsoleWrite($sLvl & @LF) EndIf FileDelete($sFile)
  12. For a bot you might be better off using the IE.au3 functions. _IEImgClick and _IELinkClickByText should be useful.
  13. Believe it or not the problem was ascii character codes.. Apparently some of the _XML functions won't work if there are any ascii codes in your file.
  14. use this instead of your click event $oForm = _IEFormGetObjByName ($oIE, "loginform") _IEFormSubmit($oForm)
  15. This works so maybe it has something to with your onclick() function. $sHTML = $sHTML & '<input class="buttonLeft" type="button" value="Send Message Pl0x" onclick="alert();"/>'
  16. Please post some code so we can help you..
  17. $sHTML &= "<table border='8'>" & @CR $sHTML &= "<table border='2'>" & @CR
  18. So the code works fine for http://www.wowarmory.com/guild-info.xml?r=Aegwynn&gn=Continuum but when I try it with http://www.wowarmory.com/guild-info.xml?r=Aegwynn&gn=Myst it doesn't work at all. I really have no clue what the problem can be and I have looked through the xml files and didn't notice anything. #include <_XMLDomWrapper.au3> #include <File.au3> ;http://www.wowarmory.com/guild-info.xml?r=Aegwynn&gn=Continuum ;http://www.wowarmory.com/guild-info.xml?r=Aegwynn&gn=Myst Global $oXML = ObjCreate("Microsoft.XMLHTTP") $oXML.Open("GET", "http://www.wowarmory.com/guild-info.xml?r=Aegwynn&gn=Myst", 0) $oXML.Send Global $sFile = _TempFile(@TempDir, '~', '.xml') FileWrite($sFile, $oXML.responseText) If _XMLFileOpen($sFile) Then Local $sLvl = _XMLGetAttrib('./guildInfo/guildHeader', 'members') ConsoleWrite($sLvl & @LF) EndIf FileDelete($sFile)
  19. $x = 0 HotKeySet("{ESC}", "CountFunc") While 1 Sleep(100) WEnd Func CountFunc() $x += 1 if $x >= 4 then $x = 1 if $x = 1 then MsgBox(0,"","Do thing 1") if $x = 2 then MsgBox(0,"","Do thing 2") if $x = 3 then MsgBox(0,"","Do thing 3") EndFunc
  20. Maybe make a function that counts every time you hit the key. Then call the new function depending on what the count is.
  21. Thanks so much man.. You've helped me alot!
  22. Any help on how to reference I guess the node professions? I don't have much experience. Ive tried Local $aRet = _XMLGetValue('characterInfo/character/battleGroup') but think im doing something horribly wrong.
  23. Thanks for the quick response and code.. I don't quite understand the code you have posted tho but I'm sure I can figure it out with a little help.. How can I get info from the XML file such as for instance level (which is equal to 80). Or profession. I'm not quite sure what to do. Is there a way I can just parse the XML like I would do a text file or html source?
  24. Hey, is there a non complicated way to parse an xml file? If I use _INetGetSource it gives me the html of the file but not the xml. Here is the file im trying to parse: http://www.wowarmory.com/character-sheet.xml?r=Anub%27arak&n=Lovepenguin
  25. Whenever I compile the script it and launch it it tells me "Please register as a developer" and then immediately exits. I can edit the code and bypass this to receive a developer key.. but I read in an earlier post that I should be able to use "1" as the key. Anyway after bypassing and running the script I set trial to 0 and it doesn't bring up the payment prompt.. Am I not understanding how this program works or something?
×
×
  • Create New...