Dirk98 Posted September 22, 2007 Share Posted September 22, 2007 Guys, is there a command, similar to RUN(), that can launch *.au3 scripts? SchellExecute() opens the script in the editor on my system. But I need to run the script istead. I know I can compile it first, but for convenience I need to keep the 2nd script uncompiled in the *.au3 form. Thanks. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 22, 2007 Moderators Share Posted September 22, 2007 (edited) /AutoIt3ExecuteScript Edit: But from SciTE you could just choose the F5 option. Edited September 22, 2007 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Nahuel Posted September 22, 2007 Share Posted September 22, 2007 ShellExecute("script.au3","Run") Link to comment Share on other sites More sharing options...
Dirk98 Posted September 22, 2007 Author Share Posted September 22, 2007 ShellExecute("script.au3","Run") Nahuel, this one OPENS in the editor, not runs it, unfortunately. Link to comment Share on other sites More sharing options...
Dirk98 Posted September 22, 2007 Author Share Posted September 22, 2007 /AutoIt3ExecuteScriptEdit:But from SciTE you could just choose the F5 option.SmokeOn, could you please say it again: /AutoIt3ExecuteScript - I can't find it. Link to comment Share on other sites More sharing options...
Nahuel Posted September 22, 2007 Share Posted September 22, 2007 Nahuel, this one OPENS in the editor, not runs it, unfortunately.haha, sorry.. I got to start testing my scripts before posting them. Try these: ShellExecute("Notas de Escritorio.au3","","","Run") ShellExecute("Notas de Escritorio.au3","","","Edit") Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 22, 2007 Moderators Share Posted September 22, 2007 SmokeOn, could you please say it again: - I can't find it.With /AutoIt3ExecuteScript, there is no need for AutoIt to be installed on the end users computer as it is with the ShellExecute Method.You could send an AutoIt exe you made, and run scripts off that one exe as much as you wanted with the command line /AutoIt3ExecuteScriptHere are some examples in the Examples forum of use:http://www.autoitscript.com/forum/index.ph...t3ExecuteScriptHere is the help file documentation:http://www.autoitscript.com/autoit3/docs/intro/running.htm Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Dirk98 Posted September 22, 2007 Author Share Posted September 22, 2007 haha, sorry.. I got to start testing my scripts before posting them. Try these: ShellExecute("Notas de Escritorio.au3","","","Run") ShellExecute("Notas de Escritorio.au3","","","Edit") Yes! Thanks again, Nahuel. Link to comment Share on other sites More sharing options...
Nahuel Posted September 22, 2007 Share Posted September 22, 2007 With /AutoIt3ExecuteScript, there is no need for AutoIt to be installed on the end users computer as it is with the ShellExecute Method.You could send an AutoIt exe you made, and run scripts off that one exe as much as you wanted with the command line /AutoIt3ExecuteScriptHere are some examples in the Examples forum of use:http://www.autoitscript.com/forum/index.ph...t3ExecuteScriptHere is the help file documentation:http://www.autoitscript.com/autoit3/docs/intro/running.htmVery interesting.. I didn't know this. Thanks. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 22, 2007 Moderators Share Posted September 22, 2007 (edited) Very interesting.. I didn't know this. Thanks.Here's an example: _RunAu3AsExe('SOMESCRIPT.AU3') ;Be sure to add a space before any param string Func _RunAu3AsExe($hFileIn, $strParams = "", $sWorkingDir = "", $sShowHide = @SW_HIDE, $nSTDOut = 0);Returns PID of newly spawned exe Return Run('"' & @AutoItExe & '" /AutoIt3ExecuteScript "' & _ $hFileIn & '"' & $strParams, $sWorkingDir, $sShowHide, $nSTDOut) EndFuncoÝ÷ ØGbµ8^iº/z+-¢¯y«®*m©ß®ì^Ûò-)ä¶zZ0ÆzÛ^ìZ^¶.!z·²¢ç¯zØ^{¥¡Æè~Ø^jíÞÅëh²°ß¡ö®¶seõ'VäS44WRWFôDWRÂb33µ4ôÔU45$BäS2b33² £´&R7W&RFòFB76R&Vf÷&Rç&Ò7G&æp¤gVæ2õ'VäS44WRb33c¶WFôDWRÂb33c¶fÆTâÂb33c·7G%&×2ÒgV÷C²gV÷C²Âb33c·5v÷&¶ætF"ÒgV÷C²gV÷C²Âb33c·56÷tFRÒ5uôDRÂb33c¶å5DD÷WBÒµ&WGW&ç2BöbæWvÇ7væVBWP &WGW&â'Vâb33²gV÷C²b33²fײb33c¶WFôDWRfײb33²gV÷C²ôWFôC4WV7WFU67&BgV÷C²b33²fײð b33c¶fÆTâfײb33²gV÷C²b33²fײb33c·7G%&×2Âb33c·5v÷&¶ætF"Âb33c·56÷tFRÂb33c¶å5DD÷WB¤VæDgVæ Edited September 22, 2007 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Nahuel Posted September 22, 2007 Share Posted September 22, 2007 Here's an example: _RunAu3AsExe('SOMESCRIPT.AU3') ;Be sure to add a space before any param string Func _RunAu3AsExe($hFileIn, $strParams = "", $sWorkingDir = "", $sShowHide = @SW_HIDE, $nSTDOut = 0);Returns PID of newly spawned exe Return Run('"' & @AutoItExe & '" /AutoIt3ExecuteScript "' & _ $hFileIn & '"' & $strParams, $sWorkingDir, $sShowHide, $nSTDOut) EndFunc Awesome. Could be useful to use as some sort of 'extension' for your apps. And no need for Autoit installed you say? Cool. 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