How can I switch Windows keyboard layouts instantly based on a USB keyboard?
I'm a student building a Windows automation project that detects connected USB keyboards by VID/PID and switches the active keyboard layout—for example, selecting an ANSI layout when a…