Computing.Net > Forums > Programming > underscore character

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

underscore character

Reply to Message Icon

Name: Geohoffman48917
Date: September 18, 2003 at 16:53:15 Pacific
OS: XP
CPU/Ram: 256
Comment:

I use VC++ and windows XP. I need to know how to simulate the '_' character being pressed. I can do any other character besides that one with keybd_event(). I have tried simulating the shift key and minus key but that does not work. I can'f find a Virtual Key that represents that character. Please help me. I have been working on this project for like two days stright and I can not finish it without this info.



Sponsored Link
Ads by Google

Response Number 1
Name: Don Arnett
Date: September 18, 2003 at 17:00:55 Pacific
Reply:

According to my ASCII chart, the value of the underscore character is 95 (0x5F).

The underscore is just a character like any others, so it would seem that however you are doing the others would work for underscore.


0

Response Number 2
Name: Geohoffman48917
Date: September 18, 2003 at 18:35:23 Pacific
Reply:

Unfortunately you do not pass ASCII characters to the keybd_event() function. You pass Virtual Key numbers. This allows you to pass the SHIFT and RETURN keys, and also the CAPSLOCK and TAB keys. 0x5F is undefined in the Virtual Key table. Is there any other way to simulate keyboard input that does not use Virtual Keys? Or is there a way to use keybd_event() and pass a scan code? And what is this KEYEVENTF_EXTENDEDKEY that I found in the VC++ documentation? It says it is for extended scan codes. I can't find a reference anywhere from google.


0

Response Number 3
Name: Mallikarjuna Nadagou
Date: October 14, 2003 at 02:31:11 Pacific
Reply:

I have the same issue now. Did you find any solution yet Mr. Geohoffman.



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: underscore character

dos copy files based on filename www.computing.net/answers/programming/dos-copy-files-based-on-filename/17353.html

Null Character in C? (NOT '\0') www.computing.net/answers/programming/null-character-in-c-not-0/3201.html

File Array & Character www.computing.net/answers/programming/file-array-amp-character/4504.html