Adding utilities to the SciTE Tools menu
You have written a small utility in AutoIt to help you code and find it annoying to have to leave SciTE to run it on your script. Well, you can add it to the SciTE <Tools> menu yourself very easily:
- First compile your script and store it somewhere. Perhaps a folder "Program Files\AutoIt3\SciTE\SciTE Utils" where you could keep several compiled scripts to help you when you code in AutoIt.
- Open <Options - Open au3.properties>. Look for the long series of "command" lines that begin about Line 64 (#x 00 Beta RUN) and go down to the last one - in v3.3.8.0 it is Line 277 (#~ # 34 Generate UDF header). You need to find the highest value used so far - 34 in this case.
- Open <Options - User Options File>. Then BETWEEN the following lines:
END => DO NOT CHANGE ANYTHING BEFORE THIS LINE #-#-#-#-#-#
>>>>>>>>>>> '''in here!!!!''' <<<<<<<<<<<<<
-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
START: DO NOT CHANGE ANYTHING AFTER THIS LINE #-#-#-#-#
you enter the following:
# 35 Utility_Name
command.35.$(au3)="$(SciteDefaultHome)\SciTE Utils\Utility.exe"
command.name.35.$(au3)=Utility_Name
command.subsystem.35.$(au3)=2
command.save.before.35.$(au3)=2
command.quiet.35.$(au3)=1
If you have a different value for the final "command" in the au3.properties file than adjust the 35 value accordingly and you can of course put the compiled exe file where you want and amend the path in the inserted text to match.
- Save the files, restart SciTE and you will find "Utility_Name" in the <Tools> menu.