Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Hotstrings with preview and with a trigger
- :C*:Amer::
- ToolTip, America, A_CaretX-10, A_CaretY-20
- Sleep, 1000
- ToolTip
- {
- input, key, L1 I M ; wait for the next 1 key
- if(key=="`;")
- SendInput, {Text}America
- Else
- SendInput, {Text}Amer
- }
- Return
- ;=========================================================================================
- ;Hotstrings With Tip And Trigger
- tip(text) {
- ToolTip, % text, A_CaretX-10, A_CaretY-20
- Input, key, L1 I M
- if (key=="`;")
- SendInput, % text
- else
- SendInput, % SubStr(A_ThisHotkey, 6) . A_EndChar . key
- ToolTip
- }
- :Cox:US::tip("United States")
- :C*x:USA::tip("United States of America")
- ;========================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement