FinalVersion Posted April 7, 2010 Share Posted April 7, 2010 I tried ShellExecute(), but that just opens in the default program, in my case, Notepad++. So how can I run a script? [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
ripdad Posted April 7, 2010 Share Posted April 7, 2010 (edited) Right-click on the au3 file and choose "open with" then "choose program"Select AutoIt3.exeThen put a check-mark in always open with this program.In the future - anytime you use ShellExecute("somefile.au3") - it will open with AutoIt.Thats for your pc only.Or you can use this example without doing the previous one:Run('C:\AutoIt3\AutoIt3.exe "somefile.au3"')Need to make sure thats the path to your AutoIt3 folder.. Edited April 7, 2010 by ripdad "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
FinalVersion Posted April 7, 2010 Author Share Posted April 7, 2010 Nothing to do with what I want, I wanted to run a script from an AutoIt program. Really, I need the command line paramters for AutoIt3.exe. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 7, 2010 Share Posted April 7, 2010 What he's saying is do it manually that way once, then it will work from a script. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
FinalVersion Posted April 7, 2010 Author Share Posted April 7, 2010 There are better ways... And I found what I was looking for. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
MvGulik Posted April 7, 2010 Share Posted April 7, 2010 (edited) whatever Edited February 7, 2011 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
FinalVersion Posted April 7, 2010 Author Share Posted April 7, 2010 Let me guess. AutoIt3.exe [/ErrorStdOut] [/AutoIt3ExecuteScript] file [params ...] Yep, didn't expect it to be included in the Help File. @ripdad Instead of guessing the path, you can just use the macro @AutoItExe... [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] 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