Jump to content

ShellExecute Edits au3 script rather than runs it


 Share

Recommended Posts

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...