ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Auto​Hotkey

by ahkscript ST2/ST3

AutoHotkey AHK language package for SublimeText including syntax highlighting, comments toggling, auto-completions, build system definitions, commands for ahkrun, ahkcompile, ahkrunpiped.

Details

Installs

  • Total 26K
  • Win 24K
  • OS X 746
  • Linux 580
Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3
Windows 1 27 31 19 17 25 17 29 22 18 16 12 15 17 32 19 24 16 14 17 24 20 14 19 6 17 28 31 20 18 19 15 10 22 23 25 22 20 20 12 24 9 23 28 25 14
OS X 0 1 2 1 0 0 0 1 1 1 0 0 4 1 3 0 2 0 0 1 0 2 0 1 0 0 0 3 0 0 1 1 1 1 0 2 1 0 0 0 3 1 2 2 1 0
Linux 0 0 0 0 0 1 1 1 0 0 2 1 1 1 2 2 0 1 0 0 0 0 2 0 0 1 1 1 1 1 0 1 0 0 1 2 1 1 0 0 0 1 0 3 1 0

Readme

Source
raw.​githubusercontent.​com

SublimeAutoHotkey - Syntax Package for Sublime Text 2/3

AutoHotkey AHK language package for SublimeText including syntax highlighting, comments toggling, auto-completions, build system definitions, commands for ahkrun, ahkcompile, ahkrunpiped.

Package Installation

  • Manual method: Download ZIP from github. Extract the files to Sublime_Data_Dir\Packages\AutoHotkey
  • Automatic method: Install AutoHotKey with Package Control.

Key Bindings

If you have the default Sublime keybindings intact, then: * Ctrl+B will run the current file (with AutoHotkey.exe) * Ctrl+Shift+B will compile the current file (with Ahk2Exe.exe)

Advanced Configuration

For the build system and ahkrun, ahkrunpiped, and ahkcompile commands, if you have a non-default installation then you will need to set your specific path to AutoHotkey.exe and Ahk2Exe.exe in a file named AutoHotkey.sublime-settings in your User folder. You can access these settings file from the Menu Preferences > Package Settings > AutoHotkey. You should make a copy of AutoHotkey Settings - Default at AutoHotkey Settings - User and modify there since then any settings defined in your User folder will take precedence and the package can still update itself without overwriting your custom settings.

ahkrunpiped

The ahkrunpiped command will allow you to run your code as a piped text string to AutoHotkey (this allows you to run snippets of code without having to save them to a file): * If text is selected - ahkrunpiped will pipe and run the selected text only. * If no text is selected - ahkrunpiped will pipe and run the entire contents of the current document.

Goto-documentation Integration

Instructions on how to configure goto-documentation plugin for AutoHotkey (F1 Hotkey will take you to documentation for word under cursor) * http://www.autohotkey.com/board/topic/46447-sublime-text-editor-very-nice/page-3#entry540187

Credits