GetLocalizedHotkey

Parameters
source string
async
This function is asynchronous. The values it returns are not guaranteed to be the same for each player. If you attempt to use it in an synchronous manner it may cause a desync.
comment

Returns the integer hotkey for a specific game action à la "GAMEOVER_QUIT_GAME". You can look up potential values in UI\FrameDef\GlobalStrings.fdf.

note

To define own values you have to import a file named war3mapMisc.txt into your map. A sample war3mapMisc.txt could look like this:

[Hotkeys]
,=44
!='!'
A='A'
B='B'
C='C'
// etc.

See also https://www.hiveworkshop.com/threads/chrord.274579/.

patch

1.00

return type
integer
Source code
native GetLocalizedHotkey takes string source returns integer
Source
common.j
wc3modding.com
GetLocalizedHotkey