Hotstring random capitalization or every other letter?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
hopit
Posts: 13
Joined: 11 May 2018, 19:59

Hotstring random capitalization or every other letter?

29 May 2018, 15:08

https://autohotkey.com/board/topic/3931 ... ck-toggle/

This is fun and all but the blinking caps lock button is a tad bit anoying :D

Would it be possible to use hotstrings to random caps stuff as it is typed?
User avatar
FanaticGuru
Posts: 1906
Joined: 30 Sep 2013, 22:25

Re: Hotstring random capitalization or every other letter?

29 May 2018, 15:17

Here is an example of a script that makes letters randomly lower or uppercase as you type.

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:") "}"
}
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
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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: aitaixy, dipahk, Nerafius and 201 guests