ToyBoi Posted July 30, 2008 Share Posted July 30, 2008 Does anyone know how I can have Grease Monkey call and Autoit exe which will either save a website as a text file or its page source Link to comment Share on other sites More sharing options...
Szhlopp Posted July 30, 2008 Share Posted July 30, 2008 Check this out: #include <IE.au3> $oIE = _IECreate("http://www.bungie.net/Stats/Halo3/Default.aspx?player=Szhlopp", 0, 0) $text = _IEBodyReadText($oIE) _IEQuit($oIE) $loc = StringInStr($text, "Highest Skill") $Skill = StringMid($text, $loc + 15, 2) $loc = StringInStr($text, "Total EXP:") $XP = StringMid($text, $loc + 11, 3) $XP = Int($XP) MsgBox(0, "", "Skill: " & $Skill & " | XP: " & $XP) RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
ToyBoi Posted July 30, 2008 Author Share Posted July 30, 2008 Check this out: #include <IE.au3> $oIE = _IECreate("http://www.bungie.net/Stats/Halo3/Default.aspx?player=Szhlopp", 0, 0) $text = _IEBodyReadText($oIE) _IEQuit($oIE) $loc = StringInStr($text, "Highest Skill") $Skill = StringMid($text, $loc + 15, 2) $loc = StringInStr($text, "Total EXP:") $XP = StringMid($text, $loc + 11, 3) $XP = Int($XP) MsgBox(0, "", "Skill: " & $Skill & " | XP: " & $XP) sorry I'm confused what is this code supposed to do? Why does it take me to a Halo site? Link to comment Share on other sites More sharing options...
Szhlopp Posted July 30, 2008 Share Posted July 30, 2008 sorry I'm confused what is this code supposed to do? Why does it take me to a Halo site?You wanted to read the Text/HTML off of a website and save it to a file correct? The example I gave you retrieves a websites text and then serches through it for the the specified text. You could easily use FileWrite($text, C:\DIR###) RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' 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