Great function for sending text to the SciTE Output Pane

SciTE Output paneWhile I predominately view text with Message boxes in AutoHotkey, sometimes they are not the right tool for the job.  I wrote a short function to automate sending text to the SciTE Output pane.

SciTE is a great editor however the Output pane is greatly underutilized.  Below is the function I wrote to manipulate it

SciTE Output Pane AutoHotkey Function

And here is a short video walking through how to use it

Sending Text to the SciTE Output Pane

 

Customizing your SciTE Status bars: Create your own to your liking!

scite status barCustomizing SciTE status bars is a great, easy, way to add more relevant information to your needs.

In the below video I walk through how you can make minor tweaks to your status bar by editing your user.properties file.  Further down the page I’ve provided some of the built-in variables however there are a ton of additional ones you can check out the defined variables here.

Here is the syntax I walked through in the below video.  The first statusbar.text.1 that is commented out is one I use by default.

SciTE Status Bar customization video

Customize yor SciTE Status Bars

Built-in variables for SciTE status bar

Variable NameMeaning
FilePathfull path of the current file
FileDirdirectory of the current file without a trailing slash
FileNamebase name of the current file
FileExtextension of the current file
FileNameExt$(FileName).$(FileExt)
Languagename of the lexer used for the current file
SessionPathfull path of the current session
CurrentSelectionvalue of the currently selected text
CurrentWordvalue of word which the caret is within or near
Replacementsnumber of replacements made by last Replace command
SelectionStartColumncolumn where selection starts
SelectionStartLineline where selection starts
SelectionEndColumncolumn where selection ends
SelectionEndLineline where selection ends
CurrentMessagemost recently selected output pane message
SciteDefaultHomedirectory in which the Global Options file is found
SciteUserHomedirectory in which the User Options file is found
SciteDirectoryHomedirectory in which the Directory Options file is found
APIPathlist of full paths of API files from api.filepattern
AbbrevPathfull path of abbreviations file
ScaleFactorthe screen’s scaling factor with a default value of 100

Creating a Second SciTE window with a user.properties hack

Second SciTE windowTypically I like having one SciTE window with multiple tabs however, at times, it is very handy to have a Second SciTE window.

Making a minor tweak to your user.properties file is an easy way to achieve this.

Just open your current user.properties file and add the below code to it.

For a quick review of how it works and how to add it you can check out this video

Creating a Second SciTE window

Opening an Additional SciTE Window

 

Running selected text in SciTE- Great tip for long AutoHotkey scripts

Running selected text in SciTE

Running selected text in SciTE

When working on longer AutoHotkey scripts, I love being able to just highlight some text and run only it.  This is possible from making some tweaks to your User.Properties file and using this file by JoeDF.

Here is the text you’ll add to your User.Properties file:

In the below video I walk through how to make updates to the User.Properties file as well as demonstrate Running selected text in SciTE.

Run Selected Text in SciTE