Jump to content

SciTE - AddOn Cascading Hotkeys


BugFix
 Share

Recommended Posts

SciTE-AddOn: OwnHotKeys (incl. Installer)
 
I'm sure, you know this: All "good", short hotkeys always used from SciTE. SciTE4AutoIt itself allows a maximum of fifty commands - the default way to create hotkeys. And a lot of them always in use by AutoIt-Tools.
 
This AddOn let you use cascading hotkeys. It gives you 65 new hotkeys. It works with the "Ctrl" key as first key. You select a trigger (indicator) key for cascading (recommended "Win") and can than create hotkeys like "Ctrl+Win, Ctrl+A" or "Ctrl+Win, Ctrl+Numpad_Dot" and so on.
How does it work:
- press the Ctrl-key together with the indicator key (i.e. "Ctrl+Win")
- hold pressed the Ctrl-key and release the indicator key
- press additional the second key of your sequence (i.e. "Ctrl+A")
 
The AddOn is based on properties file. The ownhotkeys.properties can be opened via the "Options" menu. To use your own properties files, some settings are required. You can do by hand or use the Installer setup.
 
For manual installation using the "OwnHotkeys_Manually.zip" file. Read the "README.txt" file inside the unzipped folder.
 
The installer is located in the "OwnHotkeys_Installer.zip" file. The installation must be started in SciTE. (OHK_Installer.au3 run in unpacked folder)
All files where changes are made will be secured beforehand.
 
To have the ability to execute au3-scripts with hotkeys, it is necessary to install "shell.dll" from SciTE-RU. (The installer will do this also.)
I've created some functions in "OHKfuncs.lua". You can select them inside the installer.
 
List of Own-Hotkey-Functions:

  • AddFuncName
 Adds at end of every created function in current au3-script: "  ;==> Function_Name"
 
  • AlignAtEqualSign
 Aligns all selected rows at the first rightmost equal sign
 
  • DebugToConsole
      Debugs variable under cursor with(out) @error, @extended to console output (table style)
 
  • ExecuteAU3
      Runs a given au3-file with(out) parameters
 
  • GetHotkeyList
      Writes a list of used Hotkeys to console output
 
  • GoToLine [hard coded]
 Goes to next/previous line, sets caret to end of line
 
  • ReloadStartupLua
      Reloads the Lua Startup script
 
  • Repeat
      Repeats the character left from cursor n-times
      Write the character, activate Repeat-Mode, hit numbers for "n", <ENTER> repeats last char n-times (count includes the first char)
 
  • RunSelectedCode
      Runs selected au3-code in an temporary file
 
  • SelectionMoveH [hard coded]
      Moves selected text in line to left or right
 
  • SelectionMoveV [hard coded]
      Moves selected text between lines up or down
 
  • SelectLine
      Selects full line from cursor
 
  • SelectTextInLine
      Selects line from cursor without leading space characters
 
  • SetSelection
      Selects word under cursor with(out) leading "$" / with following square braces
 
  • SkipToComment
      Sets caret to start of comment in line, if any
 
  • ToggleAdjacentChars
      Toggles adjacent characters
 
---------------------------------------------------------------------------
 
        Hard Coded Functions (use properties to de/activate)
 
  •  Move Selected Line(s) up/down (native editor functions)
  •  Move Selected Text In Line up/down/left/right (SelectionMoveV / SelectionMoveH)
  •  Skip Cursor To Previous/Next Line at line end position (GoToLine)

 
How these functions work You can watch on this page: http://www.bug-fix.info/ohk/ohk.htm.
 
With "OHK.ExecuteAU3()" you can run AutoIt-Scripts. If you have output to console in this script (ConsoleWrite), this issue must be passed by the calling Lua script to the SciTE output pane. In addition I have attached the "SciTE_Output.au3" that is copied by the installer in your user include directory. In the AU3 script in question then only the function name "ConsoleWrite" with "_SciTE_Output" must be replaced and "#include <SciTE_Output.au3>" be inserted.
 
Here is a picture from the installer.
post-8176-0-98811600-1381592251_thumb.pn

OwnHotkeys_Installer.zip

OwnHotkeys_Manually.zip

Best Regards BugFix  

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...