Sign in to follow this  
Followers 0
litlmike

Unable To Execute The External Program

5 posts in this topic

#1 ·  Posted (edited)

My code is first, my error is second. I know the directory is correct, can anyone tell me why this does not work? I am using Beta, btw.

HotKeySet("!1", "NumPad_1")
HotKeySet("!2", "NumPad_2")
HotKeySet("!3", "NumPad_3")
HotKeySet("!4", "NumPad_4")
HotKeySet("+c", "CsBoardOn")
HotKeySet("+b", "Banlast")
HotKeySet("+m", "Ma")
HotKeySet("+n", "Ms")
HotKeySet("^!+r", "RunDOTAStuff")


;*****Think I need this loop
While 1  
Wend
;******



Func NumPad_1 ()
Send("{NUMPAD1}")
EndFunc

Func NumPad_2 ()
Send("{NUMPAD2}")
EndFunc

Func NumPad_3 ()
Send("{NUMPAD3}")
EndFunc

Func NumPad_4 ()
Send("{NUMPAD4}")
EndFunc

Func CsBoardOn ()
Send("{ENTER}")
sleep(200)
Send("-csboardon")
sleep(200)
Send("{ENTER}")
EndFunc

Func Banlast ()
Send("{ENTER}")
sleep(200)
Send("/banlast")
sleep(200)
Send("{ENTER}")
EndFunc

Func Ma ()
Send("{ENTER}")
sleep(200)
Send("-ma")
sleep(200)
Send("{ENTER}")
EndFunc

Func Ms ()
Send("{ENTER}")
sleep(200)
Send("-ms")
sleep(200)
Send("{ENTER}")
EndFunc

Func RunDOTAStuff ()
Run ( "Frozen Throne.exe" , "C:\Program Files\Warcraft III" )
Run ( "WC3Banlist.exe" , "C:\Program Files\Warcraft III\WC3Banlist" )
EndFunc

>"C:\Program Files\AutoIt3\SciTE\CompileAU3\CompileAU3.exe" /run /beta /ErrorStdOut /in "F:\MUST Save\Filebackup\PC Programs I Wrote\AutoIt\WC3\DOTA.au3" /autoit3dir "C:\Program Files\AutoIt3\beta" /UserParams

>Running AU3Check (1.54.1.1) params: from:C:\Program Files\AutoIt3\beta

+>AU3Check ended.rc:0

>Running:(3.1.1.116):C:\Program Files\AutoIt3\beta\autoit3.exe "F:\MUST Save\Filebackup\PC Programs I Wrote\AutoIt\WC3\DOTA.au3"

F:\MUST Save\Filebackup\PC Programs I Wrote\AutoIt\WC3\DOTA.au3 (70) : ==> Unable to execute the external program.:

Run ( "Frozen Throne.exe" , "C:\Program Files\Warcraft III" )

The system cannot find the file specified.

+>AutoIT3.exe ended.rc:0

>Exit code: 0 Time: 2.232

Edited by litlmike

Share this post


Link to post
Share on other sites



Instead of using this: Run ( "Frozen Throne.exe" , "C:\Program Files\Warcraft III" ) , just do Run ( "C:\Program Files\Warcraft III\Frozen Throne.exe")

Share this post


Link to post
Share on other sites

Instead of using this: Run ( "Frozen Throne.exe" , "C:\Program Files\Warcraft III" ) , just do Run ( "C:\Program Files\Warcraft III\Frozen Throne.exe")

I tried this, and got the following error:

Func RunDOTAStuff ()
Run ( "C:\Program Files\Warcraft III\Frozen Throne.exe"" )
Run ( "C:\Program Files\Warcraft III\WC3Banlist\WC3Banlist.exe" )
EndFunc

F:\MUST Save\Filebackup\PC Programs I Wrote\AutoIt\WC3\DOTA.au3(69,1) : ERROR: string break without trailing _

Run ( "C:\Program Files\Warcraft III\Frozen Throne.exe"" )

Run ( "

^

F:\MUST Save\Filebackup\PC Programs I Wrote\AutoIt\WC3\DOTA.au3(69,8) : ERROR: syntax error

Run ( "C

~~~~~~~^

F:\MUST Save\Filebackup\PC Programs I Wrote\AutoIt\WC3\DOTA.au3(70,1) : ERROR: string break without trailing _ (illegal character)

Run ( "C:\Program Files\Warcraft III\WC3Banlist\WC3Banlist.exe" )

Share this post


Link to post
Share on other sites

I tried this, and got the following error:

Func RunDOTAStuff ()
Run ( "C:\Program Files\Warcraft III\Frozen Throne.exe"" )
Run ( "C:\Program Files\Warcraft III\WC3Banlist\WC3Banlist.exe" )
EndFunc
Ahh never mind, i see what I did. An extra quote.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Run ( "C:\Program Files\Warcraft III\Frozen Throne.exe"" )

too many quotes

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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