Hotkeys
A simple hotkey demo. This script has two inline hotkeys and one multi line hotkey. Activate them with "Shift+Space bar", "Control+Shift+Space bar" and "Alt+Shift+Space bar" respectively.
+space::msgbox, 64, For Your Information..., You hit Shift+space bar! ;*1 ^+space::msgbox, 64, For Your Information..., You hit Control+Shift+space bar! ;*2 !+space:: ;*3 { msgbox, 32, Riddle Me This..., ( ;*4 I am the beginning of the end, and the end of time and space. I am essential to creation, and I surround every place. What am I? ) msgbox, 64, Answer..., The letter e. End, timE, spacE, Every placE } return end::exitapp ;*5 /* 1 Shift+Space bar hotkey. 2 Control+Shift+Space bar hotkey. 3 Alt+Shift+Space bar multi line hotkey. 4 Begins continuation section. To manage large blocks of text. 5 Emergency shutdown. */ |
There is a third hotkey type involving something called a Hotkey Command. It is a little more complicated but also more flexible for certain applications.