Jump to content
Sign in to follow this  
BitByteBit

Open au3 from script.

Recommended Posts

BitByteBit

Title says all, sorry this is such an insignificant one, but I can't find the answer in the help files or Google.

You can't use run, or file open, or execute.

I just want something like :

Func Edit()

Run("E:\Programs and Games\My Creations\Autoit\My Script.au3")
Edited by BitByteBit

Share this post


Link to post
Share on other sites
water

Replace "Run" with "Shellexecute" and it should work fine if the default behaviour for AU3-files is to run them and not to open the Scite Editor.

Otherwise try

ShellExecute("E:\Programs and Games\My Creations\Autoit\My Script.au3","","","run")
Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
Yashied

Share this post


Link to post
Share on other sites
herewasplato

...and then there is also...

Run(@AutoItExe & " E:\Programs and Games\My Creations\Autoit\My Script.au3")

edit: and /AutoIt3ExecuteScript

and #include

and ....

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
BitByteBit

Thank you to all of you for taking the time to reply.

I wanted to have the script open in SciTe.

Replace "Run" with "Shellexecute" and it should work fine if the default behaviour for AU3-files is to run them and not to open the Scite Editor.

Otherwise try

ShellExecute("E:\Programs and Games\My Creations\Autoit\My Script.au3","","","run")

Exactly what I was looking for, cheers!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.