Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;=========================================================================================
- ;Multipage ToolTips Menu With Hotstrings
- ;Author: Sn1p3r53cR373 OOCCvnyYWk7zBzTAVm6ClpeoivWg3zZ3tpxjV/vjm8S3vZJZ7zDCMLjVaBJo91dv
- tip(text) {
- ToolTip, % text, A_CaretX-10, A_CaretY-20
- Input, key, L1 I M T3, {Space} ;L means Length limit, I means Ignore SendEvent method, M means Modified keystrokes such as Ctrl+A through Ctrl+Z are recognized, T3 is timeout seconds - press comma to navigate quicker, V means visible, B means Backspace is ignored, C means Case sensitive, * means Wildcard (find anywhere), E means Handle single-character end keys by character code instead of by keycode.
- if (key=="`;") Or(key=="`ְ") Or (key=="`·") Or (key=="`؛") ;Hebrew "`ְ" in place of English `; and Greek "`·" and Arabic "`؛" in place of English `;
- SendInput, % text
- if (key=="r") Or(key=="ר") Or (key=="ρ") Or(key=="ռ") Or (key=="р") Or (key=="ر") ;r=restore hotkey
- SendInput, % SubStr(A_ThisHotkey, 6) ;. A_EndChar . key ;(. A_EndChar . key adds a space at the end of the hotkey)
- ToolTip
- if (ErrorLevel = "EndKey:Space")
- Exit
- }
- :Cox:US::tip("United States")
- :C*x:USA::tip("United States of America") || tip(" United States")
- :Cox:Ita::tip("Italy") || tip("Italian")
- :Cox:Ger::tip("Germany")
- :C*x:ՀՀ::tip("Հայաստանի Հանրապետություն")
- :C*x:косм::tip("космос") || tip("космонавт") || tip("косметика")
- :C*x:יהוה::tip("יַהְוֶה") || tip("יַהְוֶה הָאֱלֹהִים") || tip("יַהְוֶה אֱלֹהִים") || tip("יַהְוֶה אֱלֹהֵי")
- :C*x:Ελλ::tip("Ἑλλάδα") || tip("Ἕλλην") || tip("Ἑλληνίς") || tip("Ἕλληνές") || tip("Ἑλληνιστί")
- :C*x:AAS::Tip("Alisa,`nAnna,`nSusanna.`n") || Tip("Are you ""partisans""?`nand what`nare you`ndoing here?")
- ;========================================================================================
Advertisement
Add Comment
Please, Sign In to add comment