Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Problem sending capital characters to QLineEdit/QTextEdit with WinAppDriver/appium



  • We use Windows Application Driver to test our Qt Widgets application and we have a problem when we send characters that contain capital characters. The first capital character will replace all other capital characters. For example, when we send "HELLO, WORLD", the text is "HHHHH, HHHHH".

    Capture01.PNG

    Capture02.PNG

    (Qt 5.15.1, WinAppDriver 1.1.1903.8001, Python 3.8.5, Appium-Python-Client 1.0.2, selenium 3.141.0)


  • Lifetime Qt Champion

    Hi,

    Something is not clear, does it happen only when using words fully capitalized ?



  • No, the first capital letter replace all others. For example, hElO, wOrLD -> hElE, wErEE

    16915656-54b0-4fbe-a674-a68adcb9a794-image.png


  • Lifetime Qt Champion

    I would install a native event filter to see if that comes from the input itself.



  • This is the generated events when entering ABC (65-66-67) with the keyboard:

    "lun. nov. 2 14:36:49 2020" > "windows_generic_MSG" 
        hwnd    :  0x3505e0 
        message :  256 
        wParam  :  16 
        lParam  :  1076494337
    "lun. nov. 2 14:36:49 2020" > "windows_generic_MSG" 
        hwnd    :  0x3505e0 
        message :  256 
        wParam  :  65 
        lParam  :  1966081
    "lun. nov. 2 14:36:49 2020" > "windows_generic_MSG" 
        hwnd    :  0x3505e0 
        message :  256 
        wParam  :  66 
        lParam  :  3145729
    "lun. nov. 2 14:36:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x3505e0 
        message :  256 
        wParam  :  67 
        lParam  :  3014657
    

    This is the generated events when sending ABC (231-231-231) with WinAppDriver:

    "lun. nov. 2 14:37:28 2020" > "windows_generic_MSG" 
        hwnd    :  0x3505e0 
        message :  256 
        wParam  :  255 
        lParam  :  21299201
    "lun. nov. 2 14:37:28 2020" > "windows_generic_MSG" 
        hwnd    :  0x3505e0 
        message :  256 
        wParam  :  231 
        lParam  :  1073741825
    "lun. nov. 2 14:37:28 2020" > "windows_generic_MSG" 
        hwnd    :  0x3505e0 
        message :  256 
        wParam  :  231 
        lParam  :  1073741825
    "lun. nov. 2 14:37:29 2020" > "windows_generic_MSG" 
        hwnd    :  0x3505e0 
        message :  256 
        wParam  :  231 
        lParam  :  1073741825
    "lun. nov. 2 14:37:29 2020" > "windows_generic_MSG" 
        hwnd    :  0x3505e0 
        message :  256 
        wParam  :  255 
        lParam  :  21299201
    

    Any idea?



  • I run the same test with a .net application and it works. And we can see that the same keys are pressed.

    msg=0x100 (WM_KEYDOWN) hwnd=0x2a0694 wparam=0xff lparam=0x1450001 result=0x0
    msg=0x100 (WM_KEYDOWN) hwnd=0x2a0694 wparam=0xe7 lparam=0x1 result=0x0
    msg=0x100 (WM_KEYDOWN) hwnd=0x2a0694 wparam=0xe7 lparam=0x40000001 result=0x0
    msg=0x100 (WM_KEYDOWN) hwnd=0x2a0694 wparam=0xe7 lparam=0x40000001 result=0x0
    msg=0x100 (WM_KEYDOWN) hwnd=0x2a0694 wparam=0xff lparam=0x1450001 result=0x0
    

    d919ca3d-7837-4ff9-80fc-563f8a4ba8af-image.png


  • Lifetime Qt Champion

    @Alain-Royer said in Problem sending capital characters to QLineEdit/QTextEdit with WinAppDriver/appium:

    msg=0x100 (WM_KEYDOWN) hwnd=0x2a0694 wparam=0xff lparam=0x1450001 result=0x0
    msg=0x100 (WM_KEYDOWN) hwnd=0x2a0694 wparam=0xe7 lparam=0x1 result=0x0
    msg=0x100 (WM_KEYDOWN) hwnd=0x2a0694 wparam=0xe7 lparam=0x40000001 result=0x0
    msg=0x100 (WM_KEYDOWN) hwnd=0x2a0694 wparam=0xe7 lparam=0x40000001 result=0x0
    msg=0x100 (WM_KEYDOWN) hwnd=0x2a0694 wparam=0xff lparam=0x1450001 result=0x0

    I don't see how ABC should be come out of those messages... There must be other messages which create this input.



  • Here's the complete message list:

    msg=0x164 hwnd=0x60798 wparam=0x0 lparam=0x89d417e210 result=0x0
    msg=0x3d (WM_GETOBJECT) hwnd=0x60798 wparam=0x0 lparam=0xffffffffffffffe7 result=0x0
    msg=0xc342 hwnd=0x60798 wparam=0x6258 lparam=0x0 result=0x0
    msg=0x3d (WM_GETOBJECT) hwnd=0x60798 wparam=0xffffffff lparam=0xfffffffc result=0x0
    msg=0x3d (WM_GETOBJECT) hwnd=0x60798 wparam=0xffffffff lparam=0x0 result=0x0
    msg=0x164 hwnd=0x60798 wparam=0x0 lparam=0x89d417e210 result=0x0
    msg=0x3d (WM_GETOBJECT) hwnd=0x60798 wparam=0x0 lparam=0xffffffffffffffe7 result=0x0
    msg=0xc342 hwnd=0x60798 wparam=0x25b5 lparam=0x3 result=0x0
    msg=0x3d (WM_GETOBJECT) hwnd=0x60798 wparam=0xffffffff lparam=0xfffffffc result=0x0
    msg=0x3d (WM_GETOBJECT) hwnd=0x60798 wparam=0xffffffff lparam=0x0 result=0x0
    msg=0x164 hwnd=0x60798 wparam=0x0 lparam=0x89d417e210 result=0x0
    msg=0x3d (WM_GETOBJECT) hwnd=0x60798 wparam=0x2238 lparam=0xfffffffffffffffb result=0x0
    msg=0x3d (WM_GETOBJECT) hwnd=0x60798 wparam=0x2238 lparam=0xfffffffffffffffa result=0x0
    msg=0x3d (WM_GETOBJECT) hwnd=0x60798 wparam=0x2238 lparam=0xfffffffffffffffe result=0x0
    msg=0x3d (WM_GETOBJECT) hwnd=0x60798 wparam=0x2238 lparam=0xfffffffffffffffd result=0x0
    msg=0x3d (WM_GETOBJECT) hwnd=0x60798 wparam=0x2238 lparam=0xfffffffffffffff9 result=0x0
    msg=0x3d (WM_GETOBJECT) hwnd=0x60798 wparam=0x0 lparam=0xffffffffffffffe7 result=0x0
    msg=0xc343 hwnd=0x60798 wparam=0x2238 lparam=0x2e3cd38d result=0x0
    msg=0xc1f0 hwnd=0x60798 wparam=0x7d0 lparam=0x3bee0000 result=0x0
    msg=0xc342 hwnd=0x60798 wparam=0x2c7b lparam=0xd result=0x0
    msg=0xd2 hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xd2 hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x86 (WM_NCACTIVATE) hwnd=0x60798 wparam=0x1 lparam=0x0 result=0x0
    msg=0x6 (WM_ACTIVATE) hwnd=0x60798 wparam=0x1 lparam=0x0 result=0x0
    msg=0x86 (WM_NCACTIVATE) hwnd=0x60798 wparam=0x0 lparam=0x2d079a result=0x0
    msg=0x6 (WM_ACTIVATE) hwnd=0x60798 wparam=0x0 lparam=0x2d079a result=0x0
    msg=0x281 (WM_IME_SETCONTEXT) hwnd=0x60798 wparam=0x1 lparam=0xc000000f result=0x0
    msg=0x282 (WM_IME_NOTIFY) hwnd=0x60798 wparam=0x2 lparam=0x0 result=0x0
    msg=0x7 (WM_SETFOCUS) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x282 (WM_IME_NOTIFY) hwnd=0x60798 wparam=0xa lparam=0x0 result=0x0
    msg=0x282 (WM_IME_NOTIFY) hwnd=0x60798 wparam=0xb lparam=0x0 result=0x0
    msg=0xe (WM_GETTEXTLENGTH) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xb0 hwnd=0x60798 wparam=0x89d417c1a0 lparam=0x89d417c1a4 result=0x0
    msg=0xb2 hwnd=0x60798 wparam=0x0 lparam=0x89d417c148 result=0x0
    msg=0xd7 (EM_CHARFROMPOS) hwnd=0x60798 wparam=0x0 lparam=0x10001 result=0x0
    msg=0x31 (WM_GETFONT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xc9 hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xd6 (EM_POSFROMCHAR) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xb2 hwnd=0x60798 wparam=0x0 lparam=0x89d417c0f8 result=0x0
    msg=0x2111 (WM_REFLECT + WM_COMMAND) hwnd=0x60798 wparam=0x1000798 lparam=0x60798 result=0x0
    msg=0x8 (WM_KILLFOCUS) hwnd=0x60798 wparam=0x60798 lparam=0x0 result=0x0
    msg=0x2111 (WM_REFLECT + WM_COMMAND) hwnd=0x60798 wparam=0x2000798 lparam=0x60798 result=0x0
    msg=0x281 (WM_IME_SETCONTEXT) hwnd=0x60798 wparam=0x0 lparam=0xc000000f result=0x0
    msg=0x281 (WM_IME_SETCONTEXT) hwnd=0x60798 wparam=0x1 lparam=0xc000000f result=0x0
    msg=0x7 (WM_SETFOCUS) hwnd=0x60798 wparam=0x60798 lparam=0x0 result=0x0
    msg=0x282 (WM_IME_NOTIFY) hwnd=0x60798 wparam=0xa lparam=0x0 result=0x0
    msg=0x282 (WM_IME_NOTIFY) hwnd=0x60798 wparam=0xb lparam=0x0 result=0x0
    msg=0xe (WM_GETTEXTLENGTH) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xb0 hwnd=0x60798 wparam=0x89d417c890 lparam=0x89d417c894 result=0x0
    msg=0xb2 hwnd=0x60798 wparam=0x0 lparam=0x89d417c838 result=0x0
    msg=0xd7 (EM_CHARFROMPOS) hwnd=0x60798 wparam=0x0 lparam=0x10001 result=0x0
    msg=0x31 (WM_GETFONT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xc9 hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xd6 (EM_POSFROMCHAR) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xb2 hwnd=0x60798 wparam=0x0 lparam=0x89d417c7e8 result=0x0
    msg=0x2111 (WM_REFLECT + WM_COMMAND) hwnd=0x60798 wparam=0x1000798 lparam=0x60798 result=0x0
    msg=0x3d (WM_GETOBJECT) hwnd=0x60798 wparam=0x3c60 lparam=0xfffffffc result=0x0
    'AppDemoDotNet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.9\System.Collections.Concurrent.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
    msg=0x87 (WM_GETDLGCODE) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x87 (WM_GETDLGCODE) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x100 (WM_KEYDOWN) hwnd=0x60798 wparam=0xff lparam=0x1450001 result=0x0
    msg=0x101 (WM_KEYUP) hwnd=0x60798 wparam=0xff lparam=0xc1450001 result=0x0
    msg=0x3d (WM_GETOBJECT) hwnd=0x60798 wparam=0xffffffff lparam=0x0 result=0x0
    msg=0xf (WM_PAINT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x85 (WM_NCPAINT) hwnd=0x60798 wparam=0x1 lparam=0x0 result=0x0
    msg=0x14 (WM_ERASEBKGND) hwnd=0x60798 wparam=0x49010ef1 lparam=0x0 result=0x0
    msg=0xe (WM_GETTEXTLENGTH) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xb0 hwnd=0x60798 wparam=0x89d417d4d0 lparam=0x89d417d4d4 result=0x0
    msg=0xb2 hwnd=0x60798 wparam=0x0 lparam=0x89d417d478 result=0x0
    msg=0xd7 (EM_CHARFROMPOS) hwnd=0x60798 wparam=0x0 lparam=0x10001 result=0x0
    msg=0x31 (WM_GETFONT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xc9 hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xd6 (EM_POSFROMCHAR) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xb2 hwnd=0x60798 wparam=0x0 lparam=0x89d417d428 result=0x0
    msg=0x87 (WM_GETDLGCODE) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x87 (WM_GETDLGCODE) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x100 (WM_KEYDOWN) hwnd=0x60798 wparam=0xe7 lparam=0x1 result=0x0
    msg=0x87 (WM_GETDLGCODE) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x102 (WM_CHAR) hwnd=0x60798 wparam=0x41 lparam=0x1 result=0x0
    msg=0x2111 (WM_REFLECT + WM_COMMAND) hwnd=0x60798 wparam=0x4000798 lparam=0x60798 result=0x0
    msg=0xb8 hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x282 (WM_IME_NOTIFY) hwnd=0x60798 wparam=0xb lparam=0x0 result=0x0
    msg=0xe (WM_GETTEXTLENGTH) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xb0 hwnd=0x60798 wparam=0x89d417d570 lparam=0x89d417d574 result=0x0
    msg=0xb2 hwnd=0x60798 wparam=0x0 lparam=0x89d417d518 result=0x0
    msg=0xd7 (EM_CHARFROMPOS) hwnd=0x60798 wparam=0x0 lparam=0x10001 result=0x0
    msg=0x31 (WM_GETFONT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xc9 hwnd=0x60798 wparam=0x1 lparam=0x0 result=0x0
    msg=0xd6 (EM_POSFROMCHAR) hwnd=0x60798 wparam=0x1 lparam=0x0 result=0x0
    msg=0xd6 (EM_POSFROMCHAR) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xc1 hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x2111 (WM_REFLECT + WM_COMMAND) hwnd=0x60798 wparam=0x3000798 lparam=0x60798 result=0x0
    msg=0x87 (WM_GETDLGCODE) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x87 (WM_GETDLGCODE) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x100 (WM_KEYDOWN) hwnd=0x60798 wparam=0xe7 lparam=0x40000001 result=0x0
    msg=0x87 (WM_GETDLGCODE) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x102 (WM_CHAR) hwnd=0x60798 wparam=0x42 lparam=0x40000001 result=0x0
    msg=0x2111 (WM_REFLECT + WM_COMMAND) hwnd=0x60798 wparam=0x4000798 lparam=0x60798 result=0x0
    msg=0xb8 hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x282 (WM_IME_NOTIFY) hwnd=0x60798 wparam=0xb lparam=0x0 result=0x0
    msg=0xe (WM_GETTEXTLENGTH) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xb0 hwnd=0x60798 wparam=0x89d417d570 lparam=0x89d417d574 result=0x0
    msg=0xb2 hwnd=0x60798 wparam=0x0 lparam=0x89d417d518 result=0x0
    msg=0xd7 (EM_CHARFROMPOS) hwnd=0x60798 wparam=0x0 lparam=0x10001 result=0x0
    msg=0x31 (WM_GETFONT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xc9 hwnd=0x60798 wparam=0x2 lparam=0x0 result=0x0
    msg=0xd6 (EM_POSFROMCHAR) hwnd=0x60798 wparam=0x2 lparam=0x0 result=0x0
    msg=0xd6 (EM_POSFROMCHAR) hwnd=0x60798 wparam=0x1 lparam=0x0 result=0x0
    msg=0xc1 hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x2111 (WM_REFLECT + WM_COMMAND) hwnd=0x60798 wparam=0x3000798 lparam=0x60798 result=0x0
    msg=0x87 (WM_GETDLGCODE) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x87 (WM_GETDLGCODE) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x100 (WM_KEYDOWN) hwnd=0x60798 wparam=0xe7 lparam=0x40000001 result=0x0
    msg=0x87 (WM_GETDLGCODE) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x102 (WM_CHAR) hwnd=0x60798 wparam=0x43 lparam=0x40000001 result=0x0
    msg=0x2111 (WM_REFLECT + WM_COMMAND) hwnd=0x60798 wparam=0x4000798 lparam=0x60798 result=0x0
    msg=0xb8 hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x282 (WM_IME_NOTIFY) hwnd=0x60798 wparam=0xb lparam=0x0 result=0x0
    msg=0xe (WM_GETTEXTLENGTH) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xb0 hwnd=0x60798 wparam=0x89d417d570 lparam=0x89d417d574 result=0x0
    msg=0xb2 hwnd=0x60798 wparam=0x0 lparam=0x89d417d518 result=0x0
    msg=0xd7 (EM_CHARFROMPOS) hwnd=0x60798 wparam=0x0 lparam=0x10001 result=0x0
    msg=0x31 (WM_GETFONT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xc9 hwnd=0x60798 wparam=0x3 lparam=0x0 result=0x0
    msg=0xd6 (EM_POSFROMCHAR) hwnd=0x60798 wparam=0x3 lparam=0x0 result=0x0
    msg=0xd6 (EM_POSFROMCHAR) hwnd=0x60798 wparam=0x2 lparam=0x0 result=0x0
    msg=0xc1 hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x2111 (WM_REFLECT + WM_COMMAND) hwnd=0x60798 wparam=0x3000798 lparam=0x60798 result=0x0
    msg=0x87 (WM_GETDLGCODE) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x87 (WM_GETDLGCODE) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x100 (WM_KEYDOWN) hwnd=0x60798 wparam=0xff lparam=0x1450001 result=0x0
    msg=0x101 (WM_KEYUP) hwnd=0x60798 wparam=0xff lparam=0xc1450001 result=0x0
    msg=0xf (WM_PAINT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x85 (WM_NCPAINT) hwnd=0x60798 wparam=0xe040ed5 lparam=0x0 result=0x0
    msg=0xe (WM_GETTEXTLENGTH) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xb0 hwnd=0x60798 wparam=0x89d417d2a0 lparam=0x89d417d2a4 result=0x0
    msg=0xb2 hwnd=0x60798 wparam=0x0 lparam=0x89d417d248 result=0x0
    msg=0xd7 (EM_CHARFROMPOS) hwnd=0x60798 wparam=0x0 lparam=0x10001 result=0x0
    msg=0x31 (WM_GETFONT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xc9 hwnd=0x60798 wparam=0x3 lparam=0x0 result=0x0
    msg=0xd6 (EM_POSFROMCHAR) hwnd=0x60798 wparam=0x3 lparam=0x0 result=0x0
    msg=0xd6 (EM_POSFROMCHAR) hwnd=0x60798 wparam=0x2 lparam=0x0 result=0x0
    msg=0xc1 hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xf (WM_PAINT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x85 (WM_NCPAINT) hwnd=0x60798 wparam=0x9040ec2 lparam=0x0 result=0x0
    msg=0xe (WM_GETTEXTLENGTH) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xb0 hwnd=0x60798 wparam=0x89d417d270 lparam=0x89d417d274 result=0x0
    msg=0xb2 hwnd=0x60798 wparam=0x0 lparam=0x89d417d218 result=0x0
    msg=0xd7 (EM_CHARFROMPOS) hwnd=0x60798 wparam=0x0 lparam=0x10001 result=0x0
    msg=0x31 (WM_GETFONT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0xc9 hwnd=0x60798 wparam=0x3 lparam=0x0 result=0x0
    msg=0xd6 (EM_POSFROMCHAR) hwnd=0x60798 wparam=0x3 lparam=0x0 result=0x0
    msg=0xd6 (EM_POSFROMCHAR) hwnd=0x60798 wparam=0x2 lparam=0x0 result=0x0
    msg=0xc1 hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x8 (WM_KILLFOCUS) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x2111 (WM_REFLECT + WM_COMMAND) hwnd=0x60798 wparam=0x2000798 lparam=0x60798 result=0x0
    msg=0x281 (WM_IME_SETCONTEXT) hwnd=0x60798 wparam=0x0 lparam=0xc000000f result=0x0
    msg=0x282 (WM_IME_NOTIFY) hwnd=0x60798 wparam=0x1 lparam=0x0 result=0x0
    msg=0xf (WM_PAINT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x85 (WM_NCPAINT) hwnd=0x60798 wparam=0x1 lparam=0x0 result=0x0
    msg=0xf (WM_PAINT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x85 (WM_NCPAINT) hwnd=0x60798 wparam=0xffffffff8c040e9c lparam=0x0 result=0x0
    msg=0xf (WM_PAINT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x85 (WM_NCPAINT) hwnd=0x60798 wparam=0x43040ee4 lparam=0x0 result=0x0
    msg=0xf (WM_PAINT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x85 (WM_NCPAINT) hwnd=0x60798 wparam=0xffffffffd9040edf lparam=0x0 result=0x0
    msg=0xf (WM_PAINT) hwnd=0x60798 wparam=0x0 lparam=0x0 result=0x0
    msg=0x85 (WM_NCPAINT) hwnd=0x60798 wparam=0x39040ed5 lparam=0x0 result=0x0
    


  • WM_CHAR seems to contains the good characters.


  • Lifetime Qt Champion

    But this does not help for Qt - it needs WM_KEYDOWN. See QWindowsKeyMapper::translateKeyEventInternal()



  • Here's the complete Qt message list:

    "jeu. nov. 5 16:34:46 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  356 
        wParam  :  0 
        lParam  :  1089846887984
    "jeu. nov. 5 16:34:46 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  3107661501 
        lParam  :  -25
    "jeu. nov. 5 16:34:46 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  356 
        wParam  :  0 
        lParam  :  1089846887984
    "jeu. nov. 5 16:34:46 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  356 
        wParam  :  0 
        lParam  :  1089846887984
    "jeu. nov. 5 16:34:46 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -5
    "jeu. nov. 5 16:34:46 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -6
    "jeu. nov. 5 16:34:46 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -2
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  356 
        wParam  :  0 
        lParam  :  1089846887984
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -5
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -6
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -2
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -1
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -1
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -2
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -3
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -7
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  0 
        lParam  :  -25
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  356 
        wParam  :  0 
        lParam  :  1089846887984
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  0 
        lParam  :  -25
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  356 
        wParam  :  0 
        lParam  :  1089846887984
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -1
    "jeu. nov. 5 16:34:50 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -1
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -1
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -2
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -2
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -2
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -2
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -2
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -2
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -2
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -2
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  8276 
        lParam  :  -2
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  70 
        wParam  :  0 
        lParam  :  1089846888016
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  71 
        wParam  :  0 
        lParam  :  1089846888016
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  28 
        wParam  :  1 
        lParam  :  19180
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  134 
        wParam  :  1 
        lParam  :  0
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  6 
        wParam  :  1 
        lParam  :  0
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  641 
        wParam  :  1 
        lParam  :  3221225487
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  642 
        wParam  :  2 
        lParam  :  0
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  7 
        wParam  :  0 
        lParam  :  0
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  15456 
        lParam  :  4294967292
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  0 
        lParam  :  -12
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  0 
        lParam  :  -12
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  4294967295 
        lParam  :  0
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  61 
        wParam  :  0 
        lParam  :  -12
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  256 
        wParam  :  255 
        lParam  :  21299201
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  537 
        wParam  :  7 
        lParam  :  0
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  257 
        wParam  :  255 
        lParam  :  3242524673
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  256 
        wParam  :  231 
        lParam  :  1
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  258 
        wParam  :  65 
        lParam  :  1
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  256 
        wParam  :  231 
        lParam  :  1073741825
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  258 
        wParam  :  66 
        lParam  :  1073741825
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  256 
        wParam  :  231 
        lParam  :  1073741825
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  258 
        wParam  :  67 
        lParam  :  1073741825
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  256 
        wParam  :  255 
        lParam  :  21299201
    "jeu. nov. 5 16:34:51 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  257 
        wParam  :  255 
        lParam  :  3242524673
    "jeu. nov. 5 16:34:54 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  134 
        wParam  :  0 
        lParam  :  0
    "jeu. nov. 5 16:34:54 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  6 
        wParam  :  0 
        lParam  :  0
    "jeu. nov. 5 16:34:54 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  28 
        wParam  :  0 
        lParam  :  8128
    "jeu. nov. 5 16:34:54 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  8 
        wParam  :  0 
        lParam  :  0
    "jeu. nov. 5 16:34:54 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  641 
        wParam  :  0 
        lParam  :  3221225487
    "jeu. nov. 5 16:34:54 2020" > "windows_generic_MSG" 
        hwnd    :  0x1605e2 
        message :  642 
        wParam  :  1 
        lParam  :  0
    

Log in to reply