Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 24th, 2007, 6:51 PM   #1
lamefif
Newbie
 
lamefif's Avatar
 
Join Date: Mar 2005
Posts: 16
Rep Power: 0 lamefif is on a distinguished road
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
lamefif is offline   Reply With Quote
Old Apr 24th, 2007, 7:07 PM   #2
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5 grumpy is on a distinguished road
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.
grumpy is offline   Reply With Quote
Old Apr 24th, 2007, 8:53 PM   #3
lamefif
Newbie
 
lamefif's Avatar
 
Join Date: Mar 2005
Posts: 16
Rep Power: 0 lamefif is on a distinguished road
there must be a way to simulate special characters as user input?
lamefif is offline   Reply With Quote
Old Apr 24th, 2007, 9:27 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inputting Non-ASCII Characters UnKnown X Python 4 Feb 11th, 2007 7:04 AM
Replacing characters in std::string magnus.therning C++ 10 Feb 1st, 2007 9:11 AM
Nothing Special, just a password generator Jessehk Show Off Your Open Source Projects 0 Oct 29th, 2006 4:20 PM
Idea For My Special Problem vhaliw_ako Project Ideas 4 Jul 2nd, 2006 9:17 PM
Converting ANSI characters to hex for Checksum. JawaKing00 C 4 Sep 9th, 2005 5:07 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:12 PM.

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