Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

# Case Sensitive IF?

3 replies to this topic
• Members
• 75 posts
• Last active: Aug 09 2015 03:51 AM
• Joined: 14 Aug 2011
Heres the code

```#SingleInstance, force

RAlt:: gosub, Accatures ; Accents + Ligatures = Accetures

Accatures:
clipboard := ""
SendInput, +{Left 2}^c{Del}
sleep, 64
aChar = %clipboard%
stLenth := StrLen(achar)

if stLenth = 2
{
MatchandReplace(aChar)
}
else
{
SendInput, ^v
return
}

return
;

MatchandReplace(CharSet)
{

if CharSet = 'E ; Acute
Send, {asc 0201}
else if CharSet = 'e
Send, {asc 0233}
else if CharSet = ``A ; Grave
Send, {asc 0192}
else if CharSet = ``a
Send, {asc 0224}
else if CharSet = ``E
Send, {asc 0200}
else if CharSet = ``e
Send, {asc 0232}
else if CharSet = ``U
Send, {asc 0217}
else if CharSet = ``u
Send, {asc 0249}
else if CharSet = ^A ; Circumflex
Send, {asc 0194}
else if CharSet = ^a
Send, {asc 0226}
else if CharSet = ^e
Send, {asc 0202}
else if CharSet = ^E
Send, {asc 0234}
else if CharSet = ^I
Send, {asc 0206}
else if CharSet = ^i
Send, {asc 0238}
else if CharSet = ^O
Send, {asc 0212}
else if CharSet = ^o
Send, {asc 0244}
else if CharSet = ^U
Send, {asc 0219}
else if CharSet = ^u
Send, {asc 0251}
else if CharSet = :E ; Diaeresis
Send, {asc 0203}
else if CharSet = :e
Send, {asc 0235}
else if CharSet = :I
Send, {asc 0207}
else if CharSet = :i
Send, {asc 0238}
else if CharSet = :U
Send, {asc 0220}
else if CharSet = :u
Send, {asc 0252}
else if CharSet = :Y
Send, {asc 0159}
else if CharSet = :y
Send, {asc 0255}
else if CharSet = ,C ; Cedille
Send, {asc 0199}
else if CharSet = ,c
Send, {asc 0231}
else if CharSet = ~N ; Tilde
Send, {asc 0209}
else if CharSet = ~n
Send, {asc 0241}
else if CharSet = OE ; Ligatures
Send, {asc 0140}
else if CharSet = oe
Send, {asc 0156}
else if CharSet = AE
Send, {asc 0198}
else if CharSet = ae
Send, {asc 0230}
else if CharSet = << ; Quotation
Send, {asc 0171}
else if CharSet = >>
Send, {asc 0187}
else
Send {asc 0020}
}

```

But, being case insensitive, auto hotkey reads 'e and 'E as the same...

How can I fix that?

• Members
• 105 posts
• Last active: Dec 20 2015 07:18 PM
• Joined: 04 Jan 2008
Case-sensitive-equal operator

• Members
• 75 posts
• Last active: Aug 09 2015 03:51 AM
• Joined: 14 Aug 2011

Case-sensitive-equal operator

Now they all output a programming character that shows up as a black rectangle with "DC4" on them.

• Members
• 2166 posts
• Last active: Jun 11 2015 05:33 PM
• Joined: 05 Sep 2009
http://www.autohotke...ngCaseSense.htm