https://autohotkey.com/board/topic/3931 ... ck-toggle/
This is fun and all but the blinking caps lock button is a tad bit anoying
Would it be possible to use hotstrings to random caps stuff as it is typed?
Hotstring random capitalization or every other letter?
- FanaticGuru
- Posts: 1906
- Joined: 30 Sep 2013, 22:25
Re: Hotstring random capitalization or every other letter?
Here is an example of a script that makes letters randomly lower or uppercase as you type.
It does not do it by toggling the caps lock key. It detects when a letter is typed and then retypes it with a random case.
FG
Code: Select all
Loop
{
Input, SingleKey, L1, {F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{Left}{Right}{Up}{Down}{Home}{End}{PgUp}{PgDn}{Del}{Ins}{BS}{Capslock}{Numlock}{PrintScreen}{Pause}
Msg := ErrorLevel
Random, X, 0, 1
if (Msg = "Max")
if X
Send % Format("{:U}", SingleKey)
else
Send % Format("{:L}", SingleKey)
else
if GetKeyState("Shift")
Send % "+" SingleKey
else
Send % "{" RegExReplace(Msg, "EndKey:") "}"
}
FG
Hotkey Help - Help Dialog for Currently Running AHK Scripts
AHK Startup - Consolidate Multiply AHK Scripts with one Tray Icon
Hotstring Manager - Create and Manage Hotstrings
[Class] WinHook - Create Window Shell Hooks and Window Event Hooks
AHK Startup - Consolidate Multiply AHK Scripts with one Tray Icon
Hotstring Manager - Create and Manage Hotstrings
[Class] WinHook - Create Window Shell Hooks and Window Event Hooks