Kyrillische Schlüsselcodes in AutoHotkey

1199
Art

Ich muss bestimmte Kombinationen auf der Tastatur neu zuordnen, zum Beispiel

Win-a 

zu

Ctrl-a 

Das Problem ist, wenn sich die Tastatur im kyrillischen Modus befindet, werden unterschiedliche Tastencodes an das Betriebssystem gesendet. Ich habe versucht, einen Befehl zur Neuzuordnung in AutoHotkey mit einem kyrillischen Zeichen anzugeben, obwohl AutoHotkey eine Fehlernachricht anzeigt, die besagt, dass der Befehl falsch ist.

Gibt es eine Möglichkeit, einen bestimmten Schlüsselcode anzugeben?

#::^a 

wo ist ein Schlüsselcode für das kyrillische "a"?

0

1 Antwort auf die Frage

2
Bavi_H

In the Autohotkey help file or online documentaion, go to the Key List page (List of Keys, Mouse Buttons, and Joystick Controls), then scroll down to the Special Keys section at the bottom. This section may help with your problem.

The first few steps tell you use a script that is using the keyboard hook, then the bring up the AutoHotkey icon's Key History page. An easy way to do that is as follows:

Put the following script into an ahk file and run it with AutoHotkey.

#InstallKeybdHook KeyHistory 

When you run this script, the AutoHotkey Key History page will appear. You can press the key you want to test, then press F5 to refresh the Key History page.

Then you can follow the next steps from that section to find and use the key code:

Somewhere near the bottom [of the Key History] are the key-down and key-up events for your key. [...] make a note of the 3-digit hexadecimal value in the second column of the list (e.g. 159). To define this key as a hotkey, follow this example:

SC159:: ; Replace 159 with your key's value. MsgBox, %A_ThisHotKey% was pressed. return 
Danke für deine Antwort, Bavi_H. Ich habe getan, wie Sie vorgeschlagen haben, und der Code lautet 01E. Wenn ich jedoch Folgendes: # SC01E :: ^ a zu meiner AHK-Konfiguration hinzufüge, hat dies keinen Einfluss auf AHK. Art vor 12 Jahren 0
Sie können SC01E als Quelle und Ziel verwenden. Hat `# SC01E :: ^ SC01E` das, was Sie wollen? Bavi_H vor 12 Jahren 0
Ich werde verflucht sein! Das tut es tatsächlich! Das macht aber keinen Sinn! Danke vielmals! Art vor 12 Jahren 0