Sign in to follow this  
Followers 0
ToyBoi

Grease Monkey to Call an AutoIt exe

4 posts in this topic

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

Share this post


Link to post
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)

Share this post


Link to post
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?

Share this post


Link to post
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###)

Share this post


Link to post
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
Sign in to follow this  
Followers 0