Sign in to follow this  
Followers 0
kor

How do I set autoit open script default behavior?

2 posts in this topic

During the install of Autoit you are given the option of what happens when you double click on a script. It either opens the script in SCITE, or runs the script.

However when deploying autoit using the /S switch to make it silent, you are obviously not given a choice. After testing a deployment it seems the default behavior from a silent install is to "run" the script instead of it edit it. My question is, how can I change this default behavior programmaticly?

I have searched already and all I can find is people saying how to right click, or go to Tools and change the file associated manually in the windows GUI. I want to change this setting in a script.

The setting must be stored in the registry or something because I've also noticed that it survives an uninstall and re-install of autoit.

Can anyone point me in the direction to change the behavior of double clicking on an au3 and have it open in Scite via command line?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

nevermind. got it.

RegWrite("HKEY_CLASSES_ROOT\AutoIt3Script\Shell", "", "REG_SZ", "Open") ; sets scripts to open in Scite
Edited by kor

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  
Followers 0