Hey everyone, I have a pretty big problem. I need to develop a program that when opened(CONSOLE), targets a certain process and send the Shift+\ key to it, basically, I need it to type (|) the pipeline character I have tried everything, SendMessage, Postmessage, VM_KEYDOWN, VM_KEYUP and all that stuff. Nothing ever gets it to type that darn character, |. Cab someone please show me how to do that, say in notepad named "Untitled - Notepad". Thank YoU!
WargRider
10
Junior Poster
Recommended Answers
Jump to PostI think you need VK_OEM_5 (or maybe VK_OEM_102).
These are found towards the bottom of this MSDN library page: Keys and Keycodes for Windows MobileOr you could try sending the ASCII code for | which is 124(0x7C).
Jump to PostYou need to have the Shift key down too (see below). Not sure how you do this though, sorry.
In addition to mapping, the keyboard driver determines which characters the virtual key generates. A single virtual key generates different characters depending on the state of other keys, such as the …
All 6 Replies
nick.crane
342
Veteran Poster
WargRider
10
Junior Poster
nick.crane
342
Veteran Poster
WargRider
10
Junior Poster
nick.crane
342
Veteran Poster
WargRider
10
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.