wrybread Posted October 18, 2005 Share Posted October 18, 2005 I'm trying to launch an au3 file from within an au3 file using the Run command, and it errors out every time. Is this forbidden? Link to comment Share on other sites More sharing options...
wrybread Posted October 18, 2005 Author Share Posted October 18, 2005 And another odd behavior: When I put the two scripts in the Programs/Startup folder, only one would run. But when I click each shortcut manually, they both run fine. Odd. Link to comment Share on other sites More sharing options...
LxP Posted October 18, 2005 Share Posted October 18, 2005 I'm trying to launch an au3 file from within an au3 file using the Run command, and it errors out every time. Is this forbidden?Run() and RunWait() don't work with anything that isn't an executable. You will want to look at SlimShady's _ShellExecute() UDF. Link to comment Share on other sites More sharing options...
Nuffilein805 Posted October 18, 2005 Share Posted October 18, 2005 why don't you just compile your files? then you should be able to run them using run("second_script.exe") my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
MHz Posted October 18, 2005 Share Posted October 18, 2005 Simply more advantages to not compiling. The AutoItExe macro uses the AutoIt that started your initial script. Example: RunWait(@AutoItExe & ' "' & @ScriptDir & '\Script.au3"') aa2zz6 1 Link to comment Share on other sites More sharing options...
Nuffilein805 Posted October 18, 2005 Share Posted October 18, 2005 Simply more advantages to not compiling.The AutoItExe macro uses the AutoIt that started your initial script.Example:RunWait(@AutoItExe & ' "' & @ScriptDir & '\Script.au3"')hey, that's a good ideai like it, maybe i should use this as well my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
fmen Posted October 18, 2005 Share Posted October 18, 2005 Simply more advantages to not compiling.The AutoItExe macro uses the AutoIt that started your initial script.Example:RunWait(@AutoItExe & ' "' & @ScriptDir & '\Script.au3"')That's great. Works. But there are two autoit.exe's running now. How can I kill the initial script without killing the second one?RunWait(@AutoItExe & ' "' & @ScriptDir & '\MouseClick.au3"')sleep (3000)ProcessClose("AutoIt3.exe")Doesn't work. Link to comment Share on other sites More sharing options...
Nuffilein805 Posted October 18, 2005 Share Posted October 18, 2005 add a hotkey to your first script let the 2nd script call the hotkey at the time the 1st isn't used any more my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
herewasplato Posted October 18, 2005 Share Posted October 18, 2005 Change: RunWait(@AutoItExe & ' "' & @ScriptDir & '\MouseClick.au3"') sleep (3000) ProcessClose("AutoIt3.exe") to Run(@AutoItExe & ' "' & @ScriptDir & '\MouseClick.au3"') [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
fmen Posted October 18, 2005 Share Posted October 18, 2005 Thanks! So simple, yet so useful. Link to comment Share on other sites More sharing options...
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