Guest User

Untitled

a guest
Oct 15th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. #SingleInstance, force
  4.  
  5.  
  6.  
  7. RAlt:: gosub, Accatures ; Accents + Ligatures = Accetures
  8.  
  9.  
  10.  
  11. Accatures:
  12. clipboard := ""
  13. SendInput, +{Left 2}^c{Del}
  14. sleep, 64
  15. aChar = %clipboard%
  16. stLenth := StrLen(achar)
  17.  
  18. if stLenth = 2
  19. {
  20.    
  21.     if (CharSet := "'E") ; Acute
  22.     {
  23.         Send, {asc 0201}
  24.     }
  25.     else if (CharSet := "'e")
  26.     {
  27.         Send, {asc 0233}
  28.     }
  29.     else if (CharSet := "`A") ; Grave
  30.     {
  31.         Send, {asc 0192}
  32.     }
  33.     else if (CharSet := "`a")
  34.     {
  35.         Send, {asc 0224}
  36.     }
  37.     else if (CharSet := "`E")
  38.     {
  39.         Send, {asc 0200}
  40.     }
  41.     else if (CharSet := "`e")
  42.     {
  43.         Send, {asc 0232}
  44.     }
  45.     else if (CharSet := "`U")
  46.     {
  47.         Send, {asc 0217}
  48.     }
  49.     else if (CharSet := "`u")
  50.     {
  51.         Send, {asc 0249}
  52.     }
  53.     else if (CharSet := "^A") ; Circumflex  
  54.     {
  55.         Send, {asc 0194}
  56.     }
  57.     else if (CharSet := "^a")
  58.     {
  59.         Send, {asc 0226}
  60.     }
  61.     else if (CharSet := "^e")
  62.     {
  63.         Send, {asc 0202}
  64.     }
  65.     else if (CharSet := "^E")
  66.     {
  67.         Send, {asc 0234}
  68.     }
  69.     else if (CharSet := "^I")
  70.     {
  71.         Send, {asc 0206}
  72.     }
  73.     else if (CharSet := "^i")
  74.     {
  75.         Send, {asc 0238}
  76.     }
  77.     else if (CharSet := "^O")
  78.     {
  79.         Send, {asc 0212}
  80.     }
  81.     else if (CharSet := "^o")
  82.     {
  83.         Send, {asc 0244}
  84.     }
  85.     else if (CharSet := "^U")
  86.     {
  87.         Send, {asc 0219}
  88.     }
  89.     else if (CharSet := "^u")
  90.     {
  91.         Send, {asc 0251}
  92.     }
  93.     else if (CharSet := ":E") ; Diaeresis
  94.     {
  95.         Send, {asc 0203}
  96.     }
  97.     else if (CharSet := ":e")
  98.     {
  99.         Send, {asc 0235}
  100.     }
  101.     else if (CharSet := ":I")
  102.     {
  103.         Send, {asc 0207}
  104.     }
  105.     else if (CharSet := ":i")
  106.     {
  107.         Send, {asc 0238}
  108.     }
  109.     else if (CharSet := ":U")
  110.     {
  111.         Send, {asc 0220}
  112.     }
  113.     else if (CharSet := ":u")
  114.     {
  115.         Send, {asc 0252}
  116.     }
  117.     else if (CharSet := ":Y")
  118.     {
  119.         Send, {asc 0159}
  120.     }
  121.     else if (CharSet := ":y")
  122.     {
  123.         Send, {asc 0255}
  124.     }
  125.     else if (CharSet := ",C") ; Cedille
  126.     {
  127.         Send, {asc 0199}
  128.     }
  129.     else if (CharSet := ",c")
  130.     {
  131.         Send, {asc 0231}
  132.     }
  133.     else if (CharSet := "~N") ; Tilde
  134.     {
  135.         Send, {asc 0209}
  136.     }
  137.     else if (CharSet := "~n")
  138.     {
  139.         Send, {asc 0241}
  140.     }
  141.     else if (CharSet := "OE") ; Ligatures
  142.     {
  143.         Send, {asc 0140}
  144.     }
  145.     else if (CharSet := "oe")
  146.     {
  147.         Send, {asc 0156}
  148.     }
  149.     else if (CharSet := "AE")
  150.     {
  151.         Send, {asc 0198}
  152.     }
  153.     else if (CharSet := "ae")
  154.     {
  155.         Send, {asc 0230}  
  156.     }
  157.     else if (CharSet := "<<") ; Quotation
  158.     {
  159.         Send, {asc 0171}
  160.     }
  161.     else if (CharSet := ">>")
  162.     {
  163.         Send, {asc 0187}
  164.     }
  165.     else
  166.     {
  167.         Send {asc 0020}
  168.     }
  169.  
  170. }
Add Comment
Please, Sign In to add comment