Jump to content

Grease Monkey to Call an AutoIt exe


Recommended Posts

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)
Link to comment
Share on other sites

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

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###)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...