
rejectpenguin
Active Members-
Posts
61 -
Joined
-
Last visited
Everything posted by rejectpenguin
-
Send numbers regaurdless of shift press?
rejectpenguin replied to rejectpenguin's topic in AutoIt General Help and Support
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. -
IE ActiveX Control ObjCreate("Shell.Explorer.2")
rejectpenguin replied to inetvideo's topic in AutoItX Help and Support
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. -
how can I search the text in IE
rejectpenguin replied to khang0001's topic in AutoIt General Help and Support
You could use StringInStr. If StringInStr($sText,"google",0,3) then msgbox(0,0,"good") -
Get current pages xml
rejectpenguin replied to rejectpenguin's topic in AutoIt General Help and Support
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! -
Get current pages xml
rejectpenguin replied to rejectpenguin's topic in AutoIt General Help and Support
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") -
Get current pages xml
rejectpenguin replied to rejectpenguin's topic in AutoIt General Help and Support
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! -
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.
-
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.
-
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)
-
Grabing Info from HTML Page.
rejectpenguin replied to oriks's topic in AutoIt General Help and Support
For a bot you might be better off using the IE.au3 functions. _IEImgClick and _IELinkClickByText should be useful. -
Clicking a Javascript Button
rejectpenguin replied to DoomNewb's topic in AutoIt General Help and Support
use this instead of your click event $oForm = _IEFormGetObjByName ($oIE, "loginform") _IEFormSubmit($oForm) -
_IEBodyWriteHTML - Page Error
rejectpenguin replied to Skrip's topic in AutoIt General Help and Support
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();"/>' -
Please post some code so we can help you..
-
No border for table...?
rejectpenguin replied to DayaAricent's topic in AutoIt General Help and Support
$sHTML &= "<table border='8'>" & @CR $sHTML &= "<table border='2'>" & @CR -
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)
-
Is this even possible?
rejectpenguin replied to Ethereal401's topic in AutoIt General Help and Support
$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 -
Is this even possible?
rejectpenguin replied to Ethereal401's topic in AutoIt General Help and Support
Maybe make a function that counts every time you hit the key. Then call the new function depending on what the count is. -
Thanks so much man.. You've helped me alot!
-
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.
-
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?
-
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
-
XProTec.au3 = automated Protect and get *Paid*
rejectpenguin replied to Valuater's topic in AutoIt Example Scripts
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?