Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Special characters ! (http://www.programmingforums.org/showthread.php?t=13055)

lamefif Apr 24th, 2007 7:51 PM

Special characters !
 
im trying to send special characters to another application.
ive tried using:

keybd_event()

SendInput()

but is not working, i've gotten them to send normal char's, but not char's like Ë..

thanks

grumpy Apr 24th, 2007 8:07 PM

Not sure about keybd_event() but I assume the same principle applies.

SendInput() generally works by sending windows events to the target application. That application needs to process those events. Not all events are processed by default, and the programmer is in control of what events are processed. Locale settings can also affect how a program processes events.

The typical application only processes WM_KEYDOWN events and ignores things such as WM_KEYUP events. If you send a WM_KEYUP, the typical application will therefore ignore it.

lamefif Apr 24th, 2007 9:53 PM

there must be a way to simulate special characters as user input?

DaWei Apr 24th, 2007 10:27 PM

Might not solve your problem, but Google 'locale' or refer to your C++ or Windows API documentation on the same subject. The meaning and presentation of character codes depends upon that. One man's cedilla is another man's barking dog.


All times are GMT -5. The time now is 2:16 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC