Jump to content
Sign in to follow this  
Jovan

ShellExecute Edits au3 script rather than runs it

Recommended Posts

Jovan

I have seen another post with the exact same problem. However, the solution (to amend the way the script is called) isn't a goer for me, as I have no control over the way the file is executed. The external application I am using allows me to enter the script into the application, then specify a file extension. The application downloads the script to the desktop temporarily, and uses ShellExecute to process it. It works with VBScript saved as a vbs file, but not AutoIT Scripts saved as au3.

Any ideas ?

Thanks in advance

Jovan

Share this post


Link to post
Share on other sites
rudi

Hi.

So "Edit" is the default action defined for *.AU3 files.

Have a look at:

Explorer, Extra, Options, File Types -> AU3 -> extended -> default action.

Registry: HKCR\Autoit3Script\Shell, Standard Value.

regards, rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites
Jovan

Hi.

So "Edit" is the default action defined for *.AU3 files.

Have a look at:

Explorer, Extra, Options, File Types -> AU3 -> extended -> default action.

Registry: HKCR\Autoit3Script\Shell, Standard Value.

regards, rudi.

Wish it was that simple. The default is run, and if I create an au3 script on my desktop, and double-click it, it runs fine, it's just when the external application tries to run it that it drops into SciTE to edit it.

regards Jovan

Share this post


Link to post
Share on other sites
trancexx

You cannot run .au3 script if AutoIt is not installed (or have at least one AutoIt program).

VBS is a different story.

But, let's say you have... then that other application is using "wrong" werb to shellexecute it.

Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
Juvigy

Is it an EXE file or an .au3 file?

Share this post


Link to post
Share on other sites
lordicast

sounds like he has the default action with .Au3 files to run rather then edit. Making him think the .exe is the .au3 and hes pointing the external app to the .au3 file rather then .exe

Answer could be the F7 button, Makes a .exe

Edit. Spelling ^_^

Edited by lordicast

[Cheeky]Comment[/Cheeky]

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.