Convert select word to capitalized or lowercase

Press Alt+X to activate

For this to work, the cursor must be right before, on or right after the word to be capitalized.


!x:: ; Convert word to capitalized or lowercase
Send {Right}
Send ^{Left}
Send +{Right}
Sleep 100
Send ^c
Sleep 200
Send +{F3}
Return

Parents
  • Nice! I use rather quicker script that keeps the clipboard contents intact. Also, it works for letters with diacritics, which is useful for languages like Czech, Slovak, Slovenian, Skolt Sami, Lakota etc., also for Spanish (ñandú <-> Ñandú)

    !x:: ; toggles first letter from lowercase to uppercase and vice versa
    SetTitleMatchMode,2
    StringCaseSense Locale ; letters with diacritics
    SendInput, {Right}^{Left}+{Right}
    Clip_Save:= ClipboardAll
    Clipboard:=
    Send ^c
    ClipWait , 1
    if Clipboard is upper
    StringLower Clipboard, Clipboard
    else
    StringUpper Clipboard, Clipboard
    Send, ^v
    Clipboard:= Clip_Save
    Clip_Save =
    Send, {Left}
    Return
Reply
  • Nice! I use rather quicker script that keeps the clipboard contents intact. Also, it works for letters with diacritics, which is useful for languages like Czech, Slovak, Slovenian, Skolt Sami, Lakota etc., also for Spanish (ñandú <-> Ñandú)

    !x:: ; toggles first letter from lowercase to uppercase and vice versa
    SetTitleMatchMode,2
    StringCaseSense Locale ; letters with diacritics
    SendInput, {Right}^{Left}+{Right}
    Clip_Save:= ClipboardAll
    Clipboard:=
    Send ^c
    ClipWait , 1
    if Clipboard is upper
    StringLower Clipboard, Clipboard
    else
    StringUpper Clipboard, Clipboard
    Send, ^v
    Clipboard:= Clip_Save
    Clip_Save =
    Send, {Left}
    Return
Children
No Data