Welcome to my third Extension !
WARNING : This extension could cause serious addictions !!! 😜
Inspired by the Sublime plug-In,
this is the Yin of the AutoHotkey extension !
I like to write AutoHotkey scripts, this language is amazing, but I often found myself go back and forth between writing an app, looking for it in my messy tray, reloading it, testing it, grab the browser and tuning it again. So I decided to improve my tools and add the capabiliy to just reload a script through a command and/or a button.
This extension manages for every script Meta-data, that will persist among vscode startups :
|Tray Icon Path
With this extension you can cut off the development time using handy commands:
- Run the script without compile it
- Set command line arguments for scripts, with ("
G") (they will be remembered among startups)
- Compile in the script's folder by default
- Change compile destination on the fly with Compile As (it will be remembered among startups)
- Run Compiled scripts
- Kill the script and the compiled exe with ease
- Tired of typing ? use buttons instead ! 😉
- Just want to test simple script parts ? select some text and Run Buffered
- If you put an icon with the same name of the
script.ahk (so named
script.ico) the icon will be used by the compiler.
- Otherwise with the command
ahk.set-icon an icon will be picked up instead of the default
- Using "
D" you can consult the docs
- if you have a selection you will be automatically redirect on google.
- You can launch the ahk spy window with "
- Chose an icon with "
- Insert a tray icon with "
- subsequent call will update the TrayIcon value
- You can temporary switch executable on the fly with the
- Initialize an empty ahk script with the default snippet
- [Experimental] an experimental formatter has been added so you could format a little bit the code (it use this simple ahk script)
A grab the script manager viewer and check ahk scripts' states
- You can also interact with them :
- Click on name for reveal it in explorer
- Click on (holding
Ctrl) for open the containing folder in a new VSCode instance
- The almighty VS Code
- The powerful AutoHotkey
- A deep understanding of the marvellous things you could do with the ahk language
- AutoHotkey extension... yeah it's not a requirement: it's a must ! 😉
- AutoHotkey Plus have an intresting formatter
- You can disable mine through
ahk.format = false
This extension contributes the following settings:
ahk.onSearch.targetBrowser: choose the right browser for performing your searches.
- see open for the right syntax (this is the option object)
ahk.onSearch.queryTemplate: with better question you'll get better answers.
ahk.onSave.run could be helpfull
ahk.onArgs.run allow script to run as soon as you specify cmd line arguments (
ahk.onEmpty.overrideHeaderSnippet to override the snippet used for initializing empty ahk files
ahk.scriptFolders.openInNewInstance specify, when
Clic on a treeItem, the behaviour to open the script/exe's folder in VSCode
ahk.format.enabled for disabling the formatter
Note: maybe you'll have to set the
executableFullPath setting in order to make this extension working with AHK.
- Icons aren't great (you could hide buttons if you don't like them, you'll still be able to invoke commands through the command palette)
- Side effect of the Shortcuts starting with
A : the select all don't get triggered, so I added this workaround :
Ctrl+A Ctrl+A for selecting all text in .ahk files ... could still be awkward... you could think about better shorcut combinations and adjust them manually for getting the
Ctrl+A working normally again.
- [ ] debugger
- [ ] improve icons and images
- [ ] improve code
- [ ] formatter ?
- [ ] remember launched scripts from history so you could also launch them from an ahk.manager secondary treeview (like extension treeviews)
- [ ] better offline docs
Initial release of this extension.
This is just a preview, but I think that is good enough to be considered usable.
May you Enjoy with this extension and craft amazing scripts with it !