Creating nonUS hotkeys now possible only if nonUS layout active.
GetKeyVK return value only if right layout is active and 0 in other cases.
Code: Select all
msgBox("ю := " GetKeyVK('ю')) ;cyrillic YU (Bulgarian Layout/Russin Layout)
Code: Select all
ю::msgBox("Error")
Script wait user to confirm, then run but hotkey not exist. It prevent hotkey() to create hotkeys too.
But in some further moment user can change layout and "ю" will exist. It is vice versa if user start in nonUS layout all the same with US hotkeys. So, user can create hotkeys only in script start layout or in active layout.
Code: Select all
y::msgBox("You press Y(es)")
д::msgBox("You press Д(а)") ;You press Yes in bulgarian/russian/serbian and all cyrillic layouts
The same in german/italian/arabic/greek and all nonUS layouts (layouts that have nonUS letters).