Custom Query (3933 matches)
Results (445 - 447 of 3933)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #1397 | Fixed | HotKeySet not working when default keyboard layout set as non-english | ||
| Description |
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:
|
|||
| #1398 | Fixed | $tagPARAFORMAT2 incorrect | ||
| Description |
The declaration of $tagPARAFORMAT2 in GUIRichEdit is incorrect. Corected declaration (semicolon after $tagPARAFORMAT was missing): Global Const $tagPARAFORMAT2 = $tagPARAFORMAT _ & ";long dySpaceBefore;long dySpaceAfter;long dyLineSpacing;short sStyle;byte bLineSpacingRule;" _ & "byte bOutlineLevel;word wShadingWeight;word wShadingStyle;word wNumberingStart;word wNumberingStyle;" _ & "word wNumberingTab;word wBorderSpace;word wBorderWidth;word wBorders" |
|||
| #1399 | Fixed | _ColorSetRGB() is returning wrong color value | ||
| Description |
The documentation of function _ColorSetRGB() states that the parameters of the function should be an array of values in the range 0-255 in the order of [RED,GREEN,BLUE], but in the following example, "[255,0,0]" will return blue instead of red and vice versa for [0,0,255]. | #Include <GuiRichEdit.au3>
#include <GUIConstantsEx.au3>
#include <Color.au3>
Global $GUI = GUICreate("Form1", 405, 333)
Global $R_Edit = _GUICtrlRichEdit_Create($GUI, "" & @CRLF, 32, 8, 345, 225,$ES_MULTILINE)
GUISetState(@SW_SHOW)
; R , G, B
Global $aRed[3] = [255, 0, 0]
Global $aBlue[3] = [0, 0, 255]
_RichEdit_Color_Append($R_Edit,'RED RED RED', _ColorSetRGB($aRed))
_RichEdit_Color_Append($R_Edit,'BLUE BLUE BLUE', _ColorSetRGB($aBlue))
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
_GUICtrlRichEdit_Destroy($R_Edit)
Exit
EndSwitch
WEnd
Func _RichEdit_Color_Append($hRichEdit, $sMsg, $COLORREF)
_GUICtrlRichEdit_AppendText($hRichEdit, @CRLF & $sMsg)
_GUICtrlRichEdit_SetSel($hRichEdit, _GUICtrlRichEdit_GetFirstCharPosOnLine($hRichEdit), -1, True)
_GUICtrlRichEdit_SetCharColor($hRichEdit, $COLORREF)
EndFunc ;==>_RichEdit_Append
-AutoIt:3.3.2.0 (Os:WIN_7/X86 Language:0409 Keyboard:00000409 Cpu:X64) | Fixes could be to reverse the order of the FOR-LOOP in the function or change the documentation to [BLUE,GREEN,RED]. |
|||
