Jump to content

it will not run run()


kcd-clan
 Share

Recommended Posts

$d_installpath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Blizzard Entertainment\Diablo II", "InstallPath")

$d_Program = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Blizzard Entertainment\Diablo II", "Program")

$realm="east"

$i=1

WinSetTitle("DiabloII","","Diablo II")

If NOT WinActive("Diablo II") Then

Run("rund2" & "-w -ns -title DiabloII -direct -txt", "$d_installpath")

WinSetTitle("DiabloII","","Diablo II")

EndIf

If NOT WinActive("Diablo II") Then

WinActivate("Diablo II")

EndIf

Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone()
Link to comment
Share on other sites

I dono it gets this error i cant figur it out..

i know it is run but i dono wuts wroung.

>"C:\Program Files\AutoIt3\SciTe\CompileAU3\CompileAU3.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\root\Desktop\d2 bots\meph.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams

>Running AU3Check...C:\Program Files\AutoIt3\SciTe\Defs\Production\Au3Check\au3check.dat

>AU3Check Ended. No Error(s).

>Running: (3.1.1.0):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\root\Desktop\d2 bots\meph.au3"

C:\Documents and Settings\root\Desktop\d2 bots\meph.au3 (7) : ==> Unable to execute the external program.:

Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone()
Link to comment
Share on other sites

  • Developers

This is not correct:

Run("rund2" & "-w -ns -title DiabloII -direct -txt", "$d_installpath")

There is no space between rund2 and -w.. (why use the & anyway?)

Also "$d_installpath" is wrong...

Try: Run($d_installpath & "\rund2 -w -ns -title DiabloII -direct -txt")

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...