Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (67 - 69 of 3825)

Ticket Resolution Summary Owner Reporter
#3834 Fixed VarGetType documentation kAnon
Description

The example for "VarGetType" uses a map that is not implemented. This raises the error "Variable subscript badly formatted."

#3833 Fixed _WinAPI_RegisterRawInputDevices and $iCount parameter Jpm kAnon
Description

The cbSize parameter is calculated incorrectly if $iCount is greater than 1. Multiplication by $ iCount is unnecessary.

#include <WinAPISys.au3>
#include <GUIConstants.au3>
#include <GuiEdit.au3>

Global $g_idEdit
test()

Func test()
    Local $tRAWINPUTDEVICEs = DllStructCreate('struct;ushort UsagePage1;ushort Usage1;dword Flags1;hwnd hTarget1;endstruct;' & _
            'struct;ushort UsagePage2;ushort Usage2;dword Flags2;hwnd hTarget2;endstruct')
    DllStructSetData($tRAWINPUTDEVICEs, 'UsagePage1', 0x01)
    DllStructSetData($tRAWINPUTDEVICEs, 'Usage1', 0x02)
    DllStructSetData($tRAWINPUTDEVICEs, 'Flags1', $RIDEV_INPUTSINK)
    DllStructSetData($tRAWINPUTDEVICEs, 'hTarget1', GUICreate(''))
    DllStructSetData($tRAWINPUTDEVICEs, 'UsagePage2', 0x01)
    DllStructSetData($tRAWINPUTDEVICEs, 'Usage2', 0x06)
    DllStructSetData($tRAWINPUTDEVICEs, 'Flags2', $RIDEV_INPUTSINK)
    DllStructSetData($tRAWINPUTDEVICEs, 'hTarget2', GUICreate(''))

    ConsoleWrite('_WinAPI_RegisterRawInputDevices: ' & _WinAPI_RegisterRawInputDevices($tRAWINPUTDEVICEs, 2) & @CRLF)  ; error
    _WinAPI_RegisterRawInputDevicesFixed($tRAWINPUTDEVICEs, 2) ; work

    GUICreate('', 400, 400, -1, -1, -1, $WS_EX_TOPMOST)
    $g_idEdit = GUICtrlCreateEdit('', 10, 10, 380, 380)
    GUIRegisterMsg($WM_INPUT, WM_INPUT)
    GUISetState()

    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc   ;==>test

Func WM_INPUT($hGui, $iMsg, $wParam, $lParam)
    #forceref $hGui, $iMsg, $wParam, $lParam
    Local $tRAWINPUTHEADER = DllStructCreate($tagRAWINPUTHEADER)
    _WinAPI_GetRawInputData($lParam, $tRAWINPUTHEADER, DllStructGetSize($tRAWINPUTHEADER), $RID_HEADER)
    Switch DllStructGetData($tRAWINPUTHEADER, 'Type')
        Case $RIM_TYPEMOUSE
            Local $tRAWINPUTMOUSE = DllStructCreate($tagRAWINPUTMOUSE)
            _WinAPI_GetRawInputData($lParam, $tRAWINPUTMOUSE, DllStructGetSize($tRAWINPUTMOUSE), $RID_INPUT)
            If DllStructGetData($tRAWINPUTMOUSE, 'ButtonFlags') Then _GUICtrlEdit_AppendText($g_idEdit, 'RIM_TYPEMOUSE' & @CRLF)
        Case $RIM_TYPEKEYBOARD
            _GUICtrlEdit_AppendText($g_idEdit, 'RIM_TYPEKEYBOARD' & @CRLF)
    EndSwitch
EndFunc   ;==>WM_INPUT

Func _WinAPI_RegisterRawInputDevicesFixed($paDevice, $iCount = 1)
    Local $aRet = DllCall('user32.dll', 'bool', 'RegisterRawInputDevices', 'struct*', $paDevice, 'uint', $iCount, _
            'uint', DllStructGetSize(DllStructCreate($tagRAWINPUTDEVICE)))
    If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0)

    Return $aRet[0]
EndFunc   ;==>_WinAPI_RegisterRawInputDevicesFixed

Windows 10 Pro 21H1 x64 AutoIt Version: 3.3.14.5 / 3.3.15.4

#3831 No Bug GUICtrlSetPos and $GUI_DOCKHCENTER Jon kAnon
Description

Using GUICtrlSetPos on elements with $GUI_DOCKHCENTER set does not work correctly.

#include <GUIConstants.au3>

test()

Func test()
    GUICreate('', 400, 400, -1, -1, $WS_OVERLAPPEDWINDOW, $WS_EX_WINDOWEDGE)
    Local $idButton_SetPos = GUICtrlCreateButton('GUICtrlSetPos', 20, 20, 360, 40)
    GUICtrlSetResizing(-1, BitOR($GUI_DOCKTOP, $GUI_DOCKHCENTER, $GUI_DOCKSIZE))
    GUISetState()

    While True
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop
            Case $idButton_SetPos
                GUICtrlSetPos($idButton_SetPos, 50, 50, 300)
        EndSwitch
    WEnd
EndFunc   ;==>test

Windows 10 Pro 21H1 x64 AutoIt Version: 3.3.14.5 / 3.3.15.4

Note: See TracQuery for help on using queries.