litlmike Posted March 29, 2006 Posted March 29, 2006 (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. expandcollapse popupHotKeySet("!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 Quote >"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 March 29, 2006 by litlmike _ArrayPermute()_ArrayUnique()Excel.au3 UDF
greenmachine Posted March 29, 2006 Posted March 29, 2006 Instead of using this: Run ( "Frozen Throne.exe" , "C:\Program Files\Warcraft III" ) , just do Run ( "C:\Program Files\Warcraft III\Frozen Throne.exe")
litlmike Posted March 30, 2006 Author Posted March 30, 2006 greenmachine said: 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 Quote 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" ) _ArrayPermute()_ArrayUnique()Excel.au3 UDF
litlmike Posted March 30, 2006 Author Posted March 30, 2006 litlmike said: 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. _ArrayPermute()_ArrayUnique()Excel.au3 UDF
GaryFrost Posted March 30, 2006 Posted March 30, 2006 (edited) Run ( "C:\Program Files\Warcraft III\Frozen Throne.exe"" )too many quotes Edited March 30, 2006 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.
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