|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
SendInput and UnicodeIs there anyone out there who wants to use Unicode characters with the SendInput
function? I had someone ask me recently if I could update my SendKeys replacement sample (http://vb.mvps.org/samples/SendInput) such that they could also send Unicode characters with it. I tweaked it a bit, and she reported it was now working for her, but I'm not sure it was a most-representative user doing the testing. I have no need (or interest) in using that functionality myself, so I'm not sure if my assumptions were good for others. Anyone wanna have a crack at it?
Show quote
Hide quote
"Karl E. Peterson" wrote: Does anyone know why apps running in a DOS window will ignore SendInput with > Is there anyone out there who wants to use Unicode characters with the SendInput > function? I had someone ask me recently if I could update my SendKeys replacement > sample (http://vb.mvps.org/samples/SendInput) such that they could also send Unicode > characters with it. I tweaked it a bit, and she reported it was now working for > her, but I'm not sure it was a most-representative user doing the testing. I have > no need (or interest) in using that functionality myself, so I'm not sure if my > assumptions were good for others. Anyone wanna have a crack at it? > -- > ..NET: It's About Trust! > http://vfred.mvps.org > > > KEYEVENTF_UNICODE? I can send chars to the DOS prompt, but if I start "edit", all chars are ignored. Thanks for any help, Tony Tony <T***@discussions.microsoft.com> schrieb im Beitrag
<E7B49C75-502A-48E1-89E5-A8A0AD186***@microsoft.com>... > Does anyone know why apps running in a DOS window will ignore SendInput Before sending the key input to a window check by a call towith > KEYEVENTF_UNICODE? > I can send chars to the DOS prompt, but if I start "edit", all chars are > ignored. IsWindowUnicode(), if the window is Unicode enabled at all. If it is not, it will not handle Unicode input and messages in any case. If it is, it might be possible that it supports Unicode input and messages. -- Thorsten Albers albers (a) uni-freiburg.de
Show quote
Hide quote
"Thorsten Albers" wrote: Thanks for the quick reply.> Tony <T***@discussions.microsoft.com> schrieb im Beitrag > <E7B49C75-502A-48E1-89E5-A8A0AD186***@microsoft.com>... > > Does anyone know why apps running in a DOS window will ignore SendInput > with > > KEYEVENTF_UNICODE? > > I can send chars to the DOS prompt, but if I start "edit", all chars are > > ignored. > > Before sending the key input to a window check by a call to > IsWindowUnicode(), if the window is Unicode enabled at all. If it is not, > it will not handle Unicode input and messages in any case. If it is, it > might be possible that it supports Unicode input and messages. > > -- > Thorsten Albers > > albers (a) uni-freiburg.de > > The window in question is the Command Prompt on XP. It does return TRUE to IsWindowUnicode, and it works fine. The problem is launching an app within the Command Prompt window, like "edit". Once "edit" is running, all keystrokes are ignored. Does anyone know why? Tony <T***@discussions.microsoft.com> schrieb im Beitrag
<57BF5ECF-9ECB-4E6B-94D6-89FB52DCA***@microsoft.com>... > The window in question is the Command Prompt on XP. It does return TRUE Presumably because 'Edit' is not Unicode-enabled? Try to load a Unicodeto > IsWindowUnicode, and it works fine. The problem is launching an app within > the Command Prompt window, like "edit". > Once "edit" is running, all keystrokes are ignored. > Does anyone know why? text in edit and see what happens. -- Thorsten Albers albers (a) uni-freiburg.de
Graphic Time Labeling
how to reposition desktop icons WTF happened to my typelibs? Test (yeah, I know) ADO Recordset Find method Problem Visual Basic 6.0 on 64-Bit system Re: create pdf file in VB6 VB6 with SQLite: Is there a report generator/viewer? Shell Function: task ID How to switch the monitor off through vb6 code? |
|||||||||||||||||||||||