tsunami

log in
history

AutoHotkey: character replacements

Luke Breuer
2017-03-15 03:05 UTC

^!+y::
    repl := {"=>":"⇒", "->":"→", "<-":"←", "!>":"⇏", "!=":"≠", "!!":"¬", "tt":"‡", "~=":"≈", "<<":"«", ">>":"»", ">=":"≥", "<=":"≤", "dg":"°", "tm":"™", "-=":"≡", "in":"∞", "+-":"±", "--":"−", "??":"¿", "!!":"¡", "gd":"δ", "gD":"Δ", "—2":"⸺", "—3":"⸻", "~~":"∼", "":"“", "''":"”", " ":"‘", " ":"‘", "' ":"’", " '":"’", "^2":"²", "-?":"­", "el":"∈", "ne":"∉", "xx":"×", "vv":"∨", "^^":"∧", "'1":"′", "'2":"″", "'3":"‴", "'4":"⁗", "oe":"œ", "ae":"æ", "<!":"≪", ">!":"≫", "^2":"²", "^3":"³", "pr":"∝", ".1":"·", "ff":"ƒ" }
    Send, {Shift down}{Left 2}{Shift up}
    
    save := Clipboard
    clipboard = ; Empty the clipboard
    Send, ^c
    ClipWait, 0.5
    clip := Clipboard
    Clipboard := save
    
    oc := repl[clip]
    If oc
        Send {raw}%oc%
Return