TextEntry allways Unicode

May 7, 2013 at 10:10 AM
Edited May 7, 2013 at 10:11 AM
When I use TextEntry, all characters are sent as Unicode. The problem is that the legacy application I'm sending this to not understand Unicode.
Input Simulator should work the same way as the keyboard. Only characters that are not available in ASCII should be handled as Unicode. The ASCII chars should be send as ASCII, and not Unicode.

Messages when I use the physical keyboard
WM_KEYDOWN nVirtKey:'F' cRepeat:1 ScanCode:21 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
WM_CHAR chCharCode:'102' (102) cRepeat:1 ScanCode:21 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
WM_KEYUP nVirtKey:'F' cRepeat:1 ScanCode:21 fExtended:0 fAltDown:0 fRepeat:1 fUp:1
Messages when I use TextEntry()
WM_KEYDOWN nVirtKey:VK_PACKET cRepeat:1 ScanCode:00 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
WM_CHAR chCharCode:'102' (102) cRepeat:1 ScanCode:00 fExtended:0 fAltDown:0 fRepeat:0 fUp:0
WM_KEYUP nVirtKey:VK_PACKET cRepeat:1 ScanCode:00 fExtended:0 fAltDown:0 fRepeat:1 fUp:1