Tutorial by Examples

To make a hotkey that sends the key sequence 'Hello World' from pressing Ctrl + J onto the active window (can be demonstrated in notepad, e.g.) ^j:: Send, Hello World Return
To make a script to replace a phrase use the ::abbreviation:: hotstring syntax. It will replace btw with by the way whenever you enter btw and then the space key. ::btw::by the way If you wanted to make a login script to make logging in faster you could make a script like this (the file is not e...
To run a script when multiple keys are pressed use the & between the keys. Numpad0 & Numpad1:: MsgBox You pressed 0 and 1 return
In order to create a hotkey or hotstring that only triggers when certain windows are active or exist, you can put one or several of the following directives before the hotkey definition: #IfWinActive [, WinTitle, WinText] #IfWinExist [, WinTitle, WinText] #IfWinNotActive [, WinTitle, WinText] #I...
The following example remaps the key Z to Y and vice versa, e.g. if you want to work with the QWERTY layout on a QWERTZ keyboard. z::y y::z
Following script enters predefined strings on hotkey presses if the scroll lock is active. This can be useful if you often paste a number of repeating strings. Included hotkey for script refresh (for example if you need to edit paste-able strings). ; refresh script hotkey Numpad9:: GetKeyS...

Page 1 of 1