This script allows you to create your own abbreviations that work in any application.
Example: you type gtd and it is converted to Getting Things Done
First, get AutoKey from Dowloads.com. And install it.
It is a very functional scripting language that has lots of functionality.
This script only touches the surface, if you are willing to do some coding or hire someone to do some for you.
Second, paste this text it a text editor and save as a *.ahk file.
; EasyScpript(r) LibraryTo autostart everytime you login, add a shortcut for that file in your startup folder (Example: C:\Documents and Settings\YourUserName\Start Menu\Programs\Startup\).
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: Jeff Orwick <JeffOrwick@Yahoo.com>
; Script Function: Allows the creation of EasyScript(r) style abbriviations.
; Scroll to the end of this file to edit any of your abbreviations.
#s:: ; Windows Key + S executes the program.
; Get the text currently selected. The clipboard is used instead of
; "ControlGet Selected" because it works in a greater variety of editors
; (namely word processors). Save the current clipboard contents to be
; restored later. Although this handles only plain text, it seems better
; than nothing:
AutoTrim Off ; Retain any leading and trailing whitespace on the clipboard.
ClipboardOld = %Clipboard%
Clipboard = ; Must start off blank for detection to work.
; Replace CRLF and/or LF with `n for use in a "send-raw" hotstring:
; The same is done for any other characters that might otherwise
; be a problem in raw mode:
StringReplace, Hotstring, Clipboard, ``, ````, All ; Do this replacement first to avoid interfering with the others below.
StringReplace, Hotstring, Hotstring, `r`n, ``r, All ; Using `r works better than `n in MS Word, etc.
StringReplace, Hotstring, Hotstring, `n, ``r, All
StringReplace, Hotstring, Hotstring, %A_Tab%, ``t, All
StringReplace, Hotstring, Hotstring, `;, ```;, All
Clipboard = %ClipboardOld% ; Restore previous contents of clipboard.
; This will move the InputBox's caret to a more friendly position:
SetTimer, MoveCaret, 10
; Show the InputBox, providing the default hotstring:
InputBox, Hotstring, New Hotstring, Complete the abbreviation.`nFormat=:<Options>:<abbrv>`::<Unabbr eviated text>`n<Options> *:No ending char O:Omit ending char`nC:Case Sensitive C1: Keep Replace String case.,,,,,,,, :R:%Hotstring%`::%Hotstring%
if ErrorLevel <> 0 ; The user pressed Cancel.
IfInString, Hotstring, `:::
MsgBox You didn't provide an abbreviation. The hotstring has not been added.
; Otherwise, add the hotstring and reload the script:
FileAppend, `n%Hotstring%, %A_ScriptFullPath% ; Put a `n at the beginning in case file lacks a blank line at its end.
Sleep 200 ; If successful, the reload will close this instance during the Sleep, so the line below will never be reached.
MsgBox, 4,, The hotstring just added appears to be improperly formatted. Would you like to open the script for editing? Note that the bad hotstring is at the bottom of the script.
IfMsgBox, Yes, Edit
IfWinNotActive, New Hotstring
; Otherwise, move the InputBox's insertion point to where the user will type the end of the unabbreviated text.
SetTimer, MoveCaret, Off
To enable the script without restarting your computer, double click on the *.ahk file. You'll see an "H" in your system tray.
I recommend you read through the help sections on Hotstrings and Auto-replace. Open help by right-clicking on the "H" in the system tray and selecting Help.