Dank des Links aus der obigen Antwort und der Tatsache, dass ich ein AutoHotKey-Benutzer bin. Ich könnte ein reines AutoHotkey-Skript für die geforderte Funktionalität bereitstellen.
Was die Kana-Taste bewirkt, ändert sich der Input von Kana in Romanji und umgekehrt. Ich habe es getestet und dieses Verhalten erhalten.
Dank der bereits ausgeführten LED-Implementierung von: https://autohotkey.com/board/topic/9587-keyboard-led-control-capslocknumlockscrolllock-lights/ macht das alles ganz einfach. (Vielen Dank, Ross Presser, dass Sie sich wertvolle Zeit genommen haben, um ihn zu verlinken.) Wenn Sie den Code als selbstverständlich betrachten und bereits importieren ... In AutoHotKey würde es wie folgt verwendet werden:
Kana_Romanji := false ; Now making a hotkey for Kana Modifier Key (0x15 / VK_Kana, in AHK = vk15) vk15:: if Kana_Romanji ; swap the off and switch to swap the LED state for it. Currently: Romanji when it is on, Kana when it is off. KeyboardLED(2, "off") else KeyboardLED(2, "switch") Kana_Romanji := not Kana_Romanji return
Ein reines AutoHotKey-Skript für dieselbe Funktionalität wäre:
Kana_Romanji := false ; Now making a hotkey for NumLock NumLock:: ; Change this to "VK15::" if your layout is using the key and delete the send or comment this and uncomment the below one. Send ; Actual Kana_Modifier key as given from MSDN sleep 10 ; Needs some delay because without delay Windows picks up the actual NumLock state and turns the light off. At least it did when I tried without it. if Kana_Romanji ; swap the off and switch to swap the LED state for it. Currently: Romanji when it is on, Kana when it is off. KeyboardLED(2, "off") else KeyboardLED(2, "switch") Kana_Romanji := not Kana_Romanji return
Ein fertiges Skript, das für Sie funktionieren sollte: https://pastebin.com/c3dcD8Gs (Lesen / Überprüfen Sie es, speichern Sie es als .ahk und öffnen Sie es mit AutoHotKey.)
PS: Ich bin auch ein NumLock-Hasser. Nur halte ich es immer aus und verwende es niemals, um die Zahlen einzugeben. Es wurde in der veralteten Vanilla-Version von AutoHotKey (Version 1.0.48.05) getestet, sollte jedoch auch auf den neueren Versionen funktionieren.
Ich hoffe es ist was du brauchst. Viel Glück.