﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1397	HotKeySet not working when default keyboard layout set as non-english	MrCreatoR <mscreator@…>	Jpm	"For users that have they '''default''' keyboard layout set to other language than english in the system, HotKeySet with english letters does not triggers the event function.

Reproducing example (default keyboard layout '''must be switched''' to other than english):


{{{
;Ctrl + Shift + D
HotKeySet(""^+d"", ""TestFunc"")

While 1
	Sleep(100)
WEnd

Func TestFunc()
	MsgBox(0, ""TestFunc"", ""Executed, so default keyboard layout is English, please switch."")
EndFunc
}}}


And it is not a system bug as i see it, because here is a script that register a hotkey using «RegisterHotKey» API and «WM_HOTKEY» message:


{{{
$VK_D = 0x44

$MOD_ALT = 0x0001
$MOD_CONTROL = 0x0002
$MOD_SHIFT = 0x0004
$MOD_WIN = 0x0008

$hWnd = GUICreate('')
GUIRegisterMsg(0x0312, ""MY_WM_HOTKEY"") ; WM_HOTKEY

; Set CTRL-SHIT-D
DllCall('user32.dll', 'int', 'RegisterHotKey', 'hwnd', $hWnd, 'int', '0', 'uint', BitOR($MOD_CONTROL, $MOD_SHIFT), 'uint', $VK_D)

While 1
	Sleep(100)
WEnd

Func MY_WM_HOTKEY($hWnd, $Msg, $wParam, $lParam)
	MsgBox(0, 'MY_WM_HOTKEY', 'You pressed CTRL-SHIFT-D.')
	Exit
EndFunc
}}}


'''Tested on:'''
* Windows XP RU SP3 32
* Windows 7 Home RU 32"	Bug	closed	3.3.7.0	AutoIt	3.3.3.1	None	Fixed	HotKeySet, english, keyboard, layout	
