In general, using keybd_event will not work for Unicode strings. The simple reason is that there are a lot more steps involved in changing a keystroke into a glyph (a displayed character). You could try sending a WM_CHAR (or WM_UNICHAR if you are using Windows XP) to the active window. This would have a higher chance of succeeding. There can be other problems though, if for example the application is using a code-page conversion, using a non-standard system locale etc.
Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
Supports C++ and VB out of the box, but can be configured for other languages.
Interesting, I hadn't thought about that. But what you probably need is VkKeyScanExW rather than ToUnicode.
Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
Supports C++ and VB out of the box, but can be configured for other languages.
Originally posted by naveenkn1977
can u give few lines of code or any example on this
Sorry, but I have no experience yet with these keyboard conversions. I've only used the SendInput function so far (to simulate some key input). And I will not have the time to develop a sample project now.
Maybe you can find some sample in the MSDN (which also has a lot of stuff to read about keyboard input).
Sorry again.
Last edited by Matthias Kring; June 5th, 2003 at 04:11 AM.
Bookmarks