N
N
Nicholas2020-02-04 11:25:55
autohotkey
Nicholas, 2020-02-04 11:25:55

How to make the script work correctly when changing the language?

Code that should work correctly:

q::5 ; In English. layout
th::6 ; In Russian layout

PS: I tried to change the language in the script window using the function in the manual:

#z:: ; Win+Z key combination.
ListLines ; This command opens the working window of the script.
WinWaitActive ahk_class AutoHotkey
Sleep, 100
Send {LAlt Down}{Shift}{LAlt Up} ; Actually changing the layout.
Sleep, 100
WinMinimize ; This command minimizes the currently active window.
Return

And also manually. Did not help(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vehs, 2020-11-11
@Vehs

You need to use a virtual key code, more details here: https://www.autohotkey.com/boards/viewtopic.php?t=51846
In your case, run the script like this:
send {sc010} ; нажать q/й

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question