Hello,
First, my goal is to get CTRL + T to work. Here is what I get from Spy++ when I do it manually.
WM_KEYDOWN nVirtKey:VK_CONTROL
WM_KEYDOWN nVirtKey:'T'
WM_KEYUP nVirtKey: 'T'
WM_KEYUP nVirtKey:VK_CONTROL
Now when I run my C# code I get this
WM_KEYDOWN nVirtKey:VK_CONTROL
WM_KEYDOWN nVirtKey:'T'
WM_KEYUP nVirtKey: 'T'
WM_KEYUP nVirtKey:VK_CONTROL
WM_CHAR chCharCode:'116' (116)
Note the extra line of code, and everything is 100% identical. Now for my C# Code.
PostMessage(m_MainWindowHandle, WM_KEYDOWN, VK_CONTROL, (IntPtr)0x001D0001);
PostMessage(m_MainWindowHandle, WM_KEYDOWN, VK_T,(IntPtr)0x00140001);
I know, I don't have the key up events, but I tried with and without them, it seems as though if I do manually T + CTRL I get that charCode. Should there be something in between that I am missing?
Thanks