ComputorEdge E-Books

ComputorEdge

Table of Contents      Beginning Hotstrings Index



Beginning AutoHotkey Hotstrings 200px

Beginning AutoHotkey Hotstrings



"A Practical Guide for Creative AutoCorrection,
Text Expansion and Text Replacement"

 
Hotstrings are only one piece of the extensive AutoHotkey Windows scripting language, but if you're a writer, editor, programmer, or word processing professional of any type, then you have a reason to use AutoHotkey Hotstrings. Whether you need to AutoCorrect your writing in any Windows application or on any Web site; want to quickly expand abbreviations; create menus of options for text replacement; or build lists of business or professional jargon for quick insertion, AutoHotkey is the ticket for you. The strength of AutoHotkey Hotstrings is that they are simple to implement, yet powerful tools. Plus, the software is free!

The primary focus of Beginning AutoHotkey Hotstrings is text replacement and text expansion, although almost anything that can be done with Hotkeys can be done with "action" Hotstrings. The beauty of AutoHotkey Hotstrings is that virtually anyone can learn to use them with little or no programming background. The basic Hotstring script may contain only one line of code standing on its own. The most popular use of Hotstrings is a series of these one-liners making up AutoHotkey text AutoCorrect apps—working in any Windows text editing or input field—whether a word processing program or Web page.

One of the great things about starting your AutoHotkey journey with Hotstrings is that it is some of the easiest scripting that you can do. All you need is a Windows text editor (Notepad). Then, as you add Hotstrings one line at a time, you become much more comfortable with the process—making it easier to include more advanced features. That's how this book is organized. It begins with the basics of AutoHotkey Hotstrings building on each chapter, concluding with techniques which venture into the intermediate (or even advanced) level in the last chapter.

Beginning AutoHotkey Hotstrings offers practical examples and techniques for getting the most out of this unique scripting language. If you're an experienced programmer, then you won't need this book—unless you're just looking for more ideas on how you might use AutoHotkey. The techniques are simple and straightforward while uncovering many of the more subtle possibilities.

The topics include adding menus and pop-up windows to your AutoHotkey Hotstrings, The last two chapters even explore the little known, yet powerful Input command.

As a convenience for people who don’t want to dig through the Web for individual tips, but would like to learn some cool AutoHotkey Hotstring tricks, the e-book Beginning AutoHotkey Hotstrings is now available on the ComputorEdge E-Books site and through Amazon.

Table of Contents to Beginning AutoHotkey Hotstrings

Chapter One: AutoHotkey Hotstrings for AutoCorrect, Text Insertion, and Text Expansion

AutoHotkey Hotstring Basics

How Hotstrings Work in Their Most Basic Form

Basic Hotstring Techniques in AutoCorrection

Getting the Most Out of AutoHotkey Hotstrings

Adding Your Signature to Anything

Adding Blocks of Text

Chapter Two: Add AutoCorrect to All Your Windows PC Programs with AutoHotkey

For People Who Fall Victim to Typos and Common Misspellings

How AutoCorrect Works

Fancy Foreign Words in English

Pet Peeves

Chapter Three: Beginning Tips for AutoHotkey Hotstring Text Correction and Text Expansion (Hotstring Options * and ?)

Practical Ways to Use Instant Replacement (*) and Internal Word Text Replacement (?) in Your AutoHotkey Hotstring AutoCorrect Script

Hotstring Options * and ?

Fixing the "HT" Typo

Chapter Four: Beginning Tips for AutoHotkey Hotstring Text Correction and Text Expansion (Hotstring Options B0, C and O)

Practical Ways to Use No Backspace (B0), Case Sensitive (C), and Omit Last Character (O) Options in Your AutoHotkey Hotstring AutoCorrect Script; Expanding Abbreviations; Capitalization Issues; Automatically Adding Script and Programming Codes

Expanding Abbreviations with the No Backspace (B0), Case Sensitive (C), and Omit Last Character (O) Options

Using the C Option for the Word AutoHotkey

The B0 Option for Inserting HTML Tags or Program Command Formats

The O Option to Omit the Activation Character

Chapter Five: Adding Action to AutoHotKey HotStrings, Plus a Trick for Creating IF Conditional Hotstring Text Replacements

How to Add Action to AutoHotKey Hotstrings; Solving an AutoCorrect Problem with IF-ELSE Conditions

Hotstrings Running AutoHotKey Routines

A Technique for Creating Conditional IF-ELSE Hotstrings

Selecting Text for Clipboard Manipulation

Fixing the Swapped Letters in THTP in AutoCorrect

Chapter Six: A Beginner's Trick for Inserting Next Friday's Date and an Important Tip for Any AutoHotkey User

A Novice AutoHotkey Trick for Inserting Next Friday's Date and a Possible Solution for Failing Hotkeys

Chapter Seven: Turning a Simple Date Trick into an Easy AutoHotkey Function

If You Need to Do It Over and Over Again, Make It an AutoHotkey Function

Debugging Tip for Mixed Variable Types

Adding the Hotstrings

Chapter Eight: Make Your Own Text AutoCorrect Hotstring Pop-up Menus with AutoHotkey

Sometimes a Common Misspelling Has More Than One Possible Replacement Word. Here's How to Add an AutoHotkey Pop-up Menu for Easy Word Selection.

Adding Menu Options to Hotstrings

Chapter Nine: How to Turn AutoHotkey Hotstring AutoCorrect Pop-up Menus into a Function

Save Redundant AutoHotkey Code by Creating a Function for Pop-up Hotstring Menus

Chapter Ten: Add Currency (and Other) Symbols with AutoHotkey Hotstring Menus

Use AutoHotKey Hotstring Menus to Add Currency Symbols to Any Windows Program or on the Web

Adding Fractions to a Menu

Adding Math Symbols to a Menu

Chapter Eleven: Replacing Overused Words with Pop-up Synonym Menus

Whether You're a Student or Merely Want to Improve Your Writing, Use Hotstring Menus to Insert Substitutes for Over Abused Words…Plus Another Free AutoHotkey Script!

Chapter Twelve: More Pop-up Synonym Menu Tips for AutoHotkey Hotstrings

The C Option (Case Sensitive)—An Easy Way to Limit Hotstring Action. Plus, How to Emulate Hotstring Capitalization in an Action Menu Subroutine.

Passing through Capitalization in Action Hotstrings

Chapter 13: Instantly Add Dates to Your Documents in Different Formats with Hotstring Menus

Don't Know Which Time or Date Format You Need for Your Next Document or Web Form? Pick from a Hotstring Menu of Options.

Chapter Fourteen: Inserting Future (or Past) Dates and Times with AutoHotkey GUIs and Hotstring Menus

Add Methods for Inserting Any Future or Past Date or Time into Your Windows and Web Documents with AutoHotkey GUI (Graphical User Interface) Pop-ups Using Hotstring Menus.

Expanding the Date/Time Hotstring Menu with Future and Past Options

Building a GUI (Graphical User Interface)

Destroying the GUI to Prevent Errors

What about the Time?

Chapter Fifteen: Inserting Future (or Past) Dates and Times with AutoHotkey GUIs and Hotstring Menus (continued)

Using the DateTime GUI to Enter Both Times and Dates into the AutoHotkey Hotstring Replacement Menus

Tracking the Original Edit Window

Chapter Sixteen: Create Instant Temporary AutoHotkey Hotstrings with the Input Command

For Those Times When All You Need for Special Tasks Is Temporary Hotstrings, Use the AutoHotkey Input Command

The AutoHotkey "Input" Command

How the "Input" Command Works

No True Value Found

State Abbreviation Text Replacement

A Quirk of the Input Command

Other Uses of the Input Command

Chapter Seventeen: Reduce Code and Increase Power with the AutoHotkey Input Command

Use the Input Command to Eliminate Code While Creating Multiple Hotstrings. You're Going to Like This One! It Includes Arrays and Hiding Data in Substrings.

Converting the Script for the Input Command

AutoHotkey Variable Arrays

Storing Data in a Text Strings

Take It to the Next Step

Index to Beginning AutoHotkey Hotstrings

#If command Chapter Sixteen
#IfWinActive command Chapter Sixteen

* * Option, immediate activation Chapter Three, Chapter Four, Chapter Ten

? Option, activate inside string Chapter Three, Chapter Ten

`t why not to use TAB for an activating character Chapter Thirteen
`t, TAB character Chapter One, Chapter Four, Chapter Ten

{alt} Chapter One
{Backspace} Chapter Five
{Enter} Chapter One
{Left 4} Chapter Five
{Raw} Chapter Nine, Chapter Thirteen, Chapter Fourteen, Chapter Fifteen
{Return} Chapter One, Chapter Four
{Shift down} Chapter Five, Chapter Twelve
{Shift up} Chapter Five, Chapter Twelve
{Space} Chapter One, Chapter Four
{Tab} Chapter One

A Beginner's Guide to AutoHotkey Chapter Thirteen, Chapter Fourteen, Author
A_CaretX built-in variable Chapter Sixteen
A_CaretY built-in variable Chapter Sixteen
A_EndChar Hotstring variable Chapter Five
A_Index built-in variable (Loop) Chapter Nine, Chapter Ten, Chapter Eleven, Chapter Thirteen
A_Now, built-in variable Chapter Six, Chapter Thirteen
A_ThisMenuItem. built-in Menu variable Chapter Eight
A_WDay, built-in variable Chapter Six, Chapter Seventeen
Abbreviations, expanding Chapter Four, Chapter Four
Add symbols to Hotstring menus Chapter Ten, Chapter Ten
Adding blocks of text Chapter One
Adding Fractions to a Menu Chapter Ten
Adding Math Symbols to a Menu Chapter Ten
Array techniques Chapter Seventeen
Array, Associative Chapter Seventeen
Arrays Chapter Seventeen
Associative Array Chapter Seventeen
Auto-execute section of script Chapter Five
AutoCorrect Chapter One, Chapter Two, Chapter Three, Chapter Five, Chapter Eight, Chapter Sixteen
AutoCorrect.exe Chapter Two
AutoHotkey Applications E-book Chapter Fourteen, Author
AutoHotkey books Copyright, ForeWord, Chapter One, Chapter Five, Chapter Ten, Chapter Fourteen, Author
AutoHotkey Functions Chapter Seven, Chapter Seven, Chapter Nine
AutoHotkey installation Chapter One
AutoIt software Chapter One

B0 Option no backspace Chapter Four, Chapter Five, Chapter Eleven, Chapter Thirteen
Blocks of text, adding Chapter One
Break command Chapter Nine
Button, Submit Chapter Fourteen

C Option case sensitive Chapter Five, Chapter Twelve, Chapter Thirteen
CharMap, open in Windows Chapter Ten
CharMap, special characters Chapter Ten
Clipboard, saving contents Chapter Five
Clipboard, Windows Chapter Five, Chapter Twelve
ClipWait command Chapter Five
Combining strings, concatenation Chapter Thirteen, Chapter Seventeen
Commands
   #If Chapter Sixteen
   #IfWinActive Chapter Sixteen
   Break (Loop) Chapter Nine
   ClipWait Chapter Five
   DateTime GUI control Chapter Fifteen
   EnvAdd (+=) Chapter Six, Chapter Seven
   FormatTime Chapter Five, Chapter Six, Chapter Seven, Chapter Thirteen, Chapter Fifteen
   Global Chapter Eleven, Chapter Thirteen
   GUI (Graphical User Interface) Chapter Fourteen, Chapter Fourteen, Chapter Fourteen
   GUI, Add Chapter Fourteen, Chapter Fifteen
   GUI, Destroy Chapter Fourteen
   GUI, Show Chapter Fourteen
   GUI, Submit Chapter Fourteen
   If Chapter Five
   IfWinExist Chapter Fourteen
   Input Chapter Sixteen, Chapter Seventeen
   InputBox Chapter Seventeen
   Loop Chapter Nine
   Menu Chapter Eight
   Menu, Add Chapter Nine
   MonthCal GUI control Chapter Fourteen, Chapter Fifteen
   MsgBox Chapter Five, Chapter Sixteen, Chapter Seventeen
   Return Chapter Five, Chapter Thirteen
   Send Chapter One, Chapter Sixteen
   SendInput Chapter Five, Chapter Six, Chapter Eight, Chapter Twelve, Chapter Thirteen,           Chapter Seventeen
   SendMode (problem?) Chapter Six
   SendRaw Chapter Nine
   StringSplit Chapter Nine, Chapter Seventeen
   StringSplit (parsing) Chapter Nine, Chapter Seventeen
   WinActivate Chapter Thirteen, Chapter Fifteen
   WinGet Chapter Fifteen
Concatenation (combining strings) Chapter Thirteen, Chapter Seventeen
Context sensitive Hotstrings Chapter Sixteen
Currency symbol menus Chapter Ten, Chapter Ten

Date format, LongDate Chapter Seven, Chapter Thirteen, Chapter Seventeen
Dates, Hotstring menus Chapter Thirteen
DateTime GUI control Chapter Fifteen
Debugging tip Chapter Seven
Delete Menu items Chapter Eight, Chapter Nine, Chapter Ten, Chapter Eleven, Chapter Thirteen
Delimiting (separating) characters Chapter Nine, Chapter Thirteen
Destroying the GUI to prevent errors Chapter Fourteen
Download
   Free AutoHotkey Scripts and Apps Chapter Six, Chapter Eleven, Chapter Twelve,
     Chapter Sixteen
   Download site Chapter Eleven, Chapter Twelve, Chapter Fourteen, Chapter Fifteen,
     Chapter Sixteen
   Dropbox download site Chapter Fourteen, Chapter Fifteen, Chapter Sixteen

EnvAdd command (+=) Chapter Six, Chapter Seven
ErrorLevel, Input command Chapter Sixteen, Chapter Seventeen
Expanding abbreviations Chapter Four, Chapter Four

FormatTime command Chapter Five, Chapter Six, Chapter Seven, Chapter Thirteen,
   Chapter Fifteen
Free AutoHotkey scripts Chapter Eleven, Chapter Twelve, Chapter Sixteen
Free AutoHotkey Scripts and Apps Chapter Six, Chapter Eleven, Chapter Twelve,
   Chapter Sixteen
Functions
   User Defined Chapter Seven
WinActive() Chapter Fifteen, Chapter Sixteen
Writing Chapter Seven, Chapter Seven, Chapter Nine

gLabel option, Gui command Chapter Fourteen
Global command Chapter Eleven, Chapter Thirteen
Global variables Chapter Eleven, Chapter Thirteen
Graphical User Interface (GUI) pop-up Chapter Fourteen, Chapter Fourteen, Chapter Fourteen
GUI (Graphical User Interface) command Chapter Fourteen, Chapter Fourteen, Chapter Fourteen
Gui command, gLabel option Chapter Fourteen
Gui, Add command Chapter Fourteen, Chapter Fifteen
GUI, Destroy command Chapter Fourteen
GUI, destroying the to prevent errors Chapter Fourteen
Gui, Show command Chapter Fourteen
Gui, Submit command Chapter Fourteen
GuiClose Label Chapter Fourteen

Hiding data in substrings Chapter Seventeen
Hotkey modifiers Chapter One
Hotkeys Chapter Sixteen
Hotstring
   Replacement Chapter One
   Text expansion ForeWord, Chapter One, Chapter Three, Chapter Four, Chapter Five,
      Chapter Sixteen
   Hotstring Options
   * Immediate activation Chapter Three, Chapter Four, Chapter Ten
   ?, activate inside string Chapter Three, Chapter Ten
   B0 No backspace Chapter Four, Chapter Five, Chapter Eleven, Chapter Thirteen
   C Case sensitive Chapter Five, Chapter Twelve, Chapter Thirteen
   O Omit the ending (activation) character Chapter Four
Hotstring pop-up menus Chapter Eight
Hotstrings
   Adding blocks of text Chapter One
   Context sensitive Chapter Sixteen
   Keylist, special keys and characters Chapter One
   Multiple lines Chapter One
   Temporary Chapter Sixteen
   {alt} Chapter One
   {Enter} Chapter One
   {Raw} Chapter Nine, Chapter Thirteen, Chapter Fourteen, Chapter Fifteen
   {Return} Chapter One, Chapter Four
   {Shift down} Chapter Five, Chapter Twelve
   {Shift up} Chapter Five, Chapter Twelve
   {Space} Chapter One, Chapter Four
   {Tab} Chapter One
Hotstrings, temporary Chapter Sixteen
HTML tags Chapter Four
HTTP Chapter One, Chapter Three, Chapter Five

If command Chapter Five
IfWinExist command Chapter Fourteen
Images of AutoHotkey GUI Control Popup Windows Chapter Fourteen
Input command Chapter Sixteen, Chapter Seventeen
Input command problem Chapter Sixteen
Input command, ErrorLevel Chapter Sixteen, Chapter Seventeen
Input command, when to use Chapter Sixteen
InputBox command Chapter Seventeen
Insert date into text Chapter Five
Insert US states Chapter Sixteen
Inserting HTML tags Chapter Four
Install AutoHotkey Chapter Two
Installing AutoHotkey Chapter One

Keyboard action, simulate Chapter Five
Keylist, special keys and characters Chapter One

Label subroutine Chapter Eight
Label, Gui gLabel option Chapter Fourteen
Label, GuiClose Chapter Fourteen
Line continuation Chapter Twelve, Chapter Fifteen, Chapter Sixteen, Chapter Seventeen
Lists of common misspellings Chapter Two
LongDate format Chapter Seven, Chapter Thirteen, Chapter Seventeen
Loop command Chapter Nine

Menu command Chapter Eight
Menu items, Delete Chapter Eight, Chapter Nine, Chapter Ten, Chapter Eleven,
   Chapter Thirteen
Menu, Add command Chapter Nine
Menus
   Add symbols Chapter Ten, Chapter Ten
   Currency Symbols Chapter Ten, Chapter Ten
   Dates Chapter Thirteen
   Synonyms Chapter Eleven
Misspellings Chapter Two
Modifiers, Hotkey Chapter One
MonthCal GUI control Chapter Fourteen, Chapter Fifteen
MsgBox command Chapter Five, Chapter Sixteen, Chapter Seventeen
Multiple line Hotstrings Chapter One
Multiple misspelling replacements Chapter Eight

Object model Chapter Seventeen
Object model, array techniques Chapter Seventeen
Object Oriented Programming (OOP) Chapter Seventeen
Omit the ending (activation) character (O option) Chapter Four
OverusedWords.ahk Chapter Eleven, Chapter Twelve

Parse Chapter Nine, Chapter Twelve, Chapter Seventeen
Pop-up menus, Hotstring Chapter Eight

Return command Chapter Five, Chapter Thirteen

Script download site Chapter Eleven, Chapter Twelve
Script writing Chapter Two
Scripts AutoHotkey (free) Chapter Eleven, Chapter Twelve, Chapter Sixteen
Send command Chapter One, Chapter Sixteen
SendInput command Chapter Five, Chapter Six, Chapter Eight, Chapter Twelve,
   Chapter Thirteen, Chapter Seventeen
SendMode command (problem?) Chapter Six
SendRaw command Chapter Nine
Simulate keyboard action Chapter Five
Special Characters Chapter Two, Chapter Ten
Storing data in a text strings Chapter Seventeen
StringSplit command Chapter Nine, Chapter Seventeen
StringSplit command (parsing) Chapter Nine, Chapter Seventeen
Submit Button Chapter Fourteen
Subroutine, gLabel option Chapter Fourteen
Subroutine, Label Chapter Eight
Symbols Chapter Two, Chapter Nine, Chapter Ten
Symbols, adding to Hotstring menus Chapter Ten, Chapter Ten
Synonym menus Chapter Eleven
Synonyms For Words Commonly Used In Student's Writings Chapter Eleven

TAB character `t Chapter One, Chapter Four, Chapter Ten
Temporary Hotstrings Chapter Sixteen
Tracking the original window Chapter Fifteen

US states, insert from mail codes Chapter Sixteen
Use and Images of AutoHotkey GUI Control Popup Windows Chapter Fourteen
User Defined Functions Chapter Seven

Variables Built-in
A_CaretX Chapter Sixteen
A_CaretY Chapter Sixteen
A_EndChar Chapter Five
A_Index (Loop) Chapter Nine, Chapter Ten, Chapter Eleven, Chapter Thirteen
A_Now Chapter Six, Chapter Thirteen
A_ThisMenuItem. Menu variable Chapter Eight
A_WDay Chapter Six, Chapter Seventeen
W
When to use the Input command Chapter Sixteen
WinActivate command Chapter Thirteen, Chapter Fifteen
WinActive() function Chapter Fifteen, Chapter Sixteen
Window, tracking Chapter Fifteen
Windows CharMap Chapter Ten
Windows Clipboard Chapter Five, Chapter Twelve
WinGet command Chapter Fifteen
Writing AutoHotkey Functions Chapter Seven, Chapter Seven, Chapter Nine

*          *           *

As a convenience for people who don’t want to dig through the Web for individual tips, but would like to learn some cool AutoHotkey Hotstring tricks, the e-book Beginning AutoHotkey Hotstrings is now available on the ComputorEdge E-Books site and through Amazon. If e-books are not your thing, then it might be worth your time to peruse some of the blogs included in this book and linked at “Beginning AutoHotkey Hotstring Techniques” found under the “AutoHotkey Topics and Series” tab in the top menu bar of Jack's AutoHotkey Blog. They just might inspire your next AutoHotkey script.


*                    *                    *


ComputorEdge