Shell Program Creator

12 posts in this topic

NerdFencer 2

In an attempt to avoid repetitive work, here is a script that generates basic scripts. Working off of the premise that there are only a few basic types of script that you usually make in AutoIt. This script quickly generates shell scripts for the 4 most common ones (GUI scripts, Tray Apps, UDF scripts, and Automation scripts).

For GUI Scripts, it generates functional, blank, single GUI or multi-GUI scripts.

For UDF Scripts, it generates the blank sections of the UDF needed for your UDF, and inserts a blank copy of the Function documentation block and the no doc function documentation block.

For Automation Scripts, it can generate anything from basic "proceed with this operation" front-ends, to multi-function "select which task to perform" front-ends. Also has "Downloading Auto-Installer" as an option.

Share this post

Link to post

Share on other sites

Sunaj 1

I cant seem to figure out how to add it to the Tools menu in Scite yet...

If anybody knows please tell me so I can put it in the next release

Try and have a look at this code snippet from an defunct project I had going at some point; the SciTE installer in my project worked just fine.. (hope you can work around the idiosyncrasies of it - at least it tells you the format of the data to add and the place where to add the them

Func Install()$old_result=""For$i=5To45; assuming there'll be no less than 5 menu items and no more than 45 in the SciTE AU3 Tools menu$result=StringInStr($File_au3_properties,"command."&$i&".$")If$result==0Then$string_to_append=@CRLF&@CRLF&"#x "&$i&" FuncHighlight, add highlight and calltips"&@CRLF&_"command.name."&$i&".$(au3)=FuncHighlight, add highlight and calltips"&@CRLF&_"command.shortcut."&$i&".$(au3)=Ctrl+Shift+C"&@CRLF&_'command.'&$i&'.$(au3)="'&StringReplace(@ScriptFullPath,".au3",".exe")&'"'&' "$(FilePath)"'$file_handle=FileOpen($Au3_install_dir&"\SciTE\Properties\au3.properties",1)$test=FileWrite($file_handle,$string_to_append)If$test==1ThenMsgBox(48,"FuncHighlighter installed","Success, after restarting SciTE you can invoke via Tools menu")EndIfFileClose($file_handle)ExitLoopEndIfNextEndFunc

Share this post

Link to post

Share on other sites

MilesAhead 22

Looks interesting. I'm a version behind in AutoIt3 (3.3.0.0). When I run the script with /Install param, I get the gui but I don't see anything in Scite. Is it specific to latest AutoIt3 setup or something?

Share this post

Link to post

Share on other sites

MilesAhead 22

btw I haven't had as good a luck on Windows 7 with the latest AutoIt3. It shows in the Tool menu in Scite if I have an .au3 file already loaded, but not otherwise. Also when I hit the Generate button, say for a Tray app.. instead of generating source and loading in the editor, it runs it in the tray. I get an icon with an Exit command and that's it.

I just installed AutoIt3 3.3.4.0, installed the Scite4AutoIt3 package, then Shell Program Creator. It worked fine on Vista64 with AutoIt3 3.3.0.0 installed.