Eigensheep Posted April 10, 2009 Posted April 10, 2009 Hi, I've tried most things but I can't seem to get the concept to work. I've basically got a GUI with a button and an input and when you hit the button, I would like the script path to run. I tried: $fn = @ComSpec & ' /c "' & @ScriptDir & '\autoit3.exe" /ErrorStdOut "' & $_FILENAME & '"' RunWait($fn) (The $_FILENAME is a valid script path, and autoit3.exe is in the script directory...) But the cmd gives an error. What am I doing wrong? Thanks!
Valuater Posted April 10, 2009 Posted April 10, 2009 from Autoit Wrappers; Run any au3 file from your program ; Author Valuater $file_loc = @ScriptDir & "\Test.au3" If @Compiled = 1 Then $file_exe = FileGetShortName(@AutoItExe & ' /AutoIt3ExecuteScript "' & $file_loc & '"') Run($file_exe) Else $file_au3 = FileGetShortName($file_loc) Run(@AutoItExe & " " & $file_au3, "", @SW_HIDE) EndIf8)
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