kor Posted February 28, 2011 Share Posted February 28, 2011 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? Link to comment Share on other sites More sharing options...
kor Posted February 28, 2011 Author Share Posted February 28, 2011 (edited) nevermind. got it. RegWrite("HKEY_CLASSES_ROOT\AutoIt3Script\Shell", "", "REG_SZ", "Open") ; sets scripts to open in Scite Edited February 28, 2011 by kor 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