Click here to Skip to main content
15,890,506 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: How the machine know if the .net code is re-compile by the JIT compiler ? Pin
dan!sh 4-Jun-10 3:06
professional dan!sh 4-Jun-10 3:06 
Question.net remoting OR web services OR WCF Service Pin
divyesh14323-Jun-10 19:27
divyesh14323-Jun-10 19:27 
AnswerRe: .net remoting OR web services OR WCF Service Pin
dan!sh 3-Jun-10 21:29
professional dan!sh 3-Jun-10 21:29 
AnswerRe: .net remoting OR web services OR WCF Service Pin
Peace ON3-Jun-10 21:42
Peace ON3-Jun-10 21:42 
AnswerRe: .net remoting OR web services OR WCF Service Pin
Abhinav S3-Jun-10 21:45
Abhinav S3-Jun-10 21:45 
GeneralRe: .net remoting OR web services OR WCF Service Pin
dan!sh 3-Jun-10 21:51
professional dan!sh 3-Jun-10 21:51 
QuestionsqlDependency cache- notification model Pin
senthu33-Jun-10 11:55
senthu33-Jun-10 11:55 
QuestionSending a keystroke to all applications Pin
Kevin Geary2-Jun-10 6:55
Kevin Geary2-Jun-10 6:55 
I have a piece of hardware with some buttons which when pressed will send an events via a USB interface to an application I have written(let's call it APP1).

I have a 2nd application (let's call it APP2) that reacts to certain keystrokes (for example when it sees a Key Press event for SPACE BAR it will pop-up a dialog). I have no control over the code in this application.

I need to make it so when APP1 sees a button is pressed on the hardware it will send a keystroke to APP2 (or to all windows).

Some constraints:
- I cannot change the hardware to simply send the SPACE BAR, I only have control over APP1.
- There may exist another version of APP2 that will react to a different button such as ENTER key (or any key sequence for that matter) so I would like to have APP1 be configurable in the event it sends to other windows/applications and is in no way dependent on the name of APP2 as I may see many versions of APP2.

What is the best way to handle this? Sendkeys?
What information do I need to know about APP2 from within APP1 to send the keystroke to this window specifically? I'm OK with (and would prefer) sending this event to all Windows if that is possible so if APP2 changes in the future APP1 is not impacted.

I'm fairly new to Windows Programming so all help and insight is appreciated.

Thanks in advance.

KG
AnswerRe: Sending a keystroke to all applications Pin
Luc Pattyn2-Jun-10 7:24
sitebuilderLuc Pattyn2-Jun-10 7:24 
AnswerRe: Sending a keystroke to all applications Pin
PIEBALDconsult3-Jun-10 5:59
mvePIEBALDconsult3-Jun-10 5:59 
AnswerRe: Sending a keystroke to all applications [modified] Pin
Hristo-Bojilov3-Jun-10 10:11
Hristo-Bojilov3-Jun-10 10:11 
GeneralRe: Sending a keystroke to all applications Pin
Luc Pattyn3-Jun-10 11:00
sitebuilderLuc Pattyn3-Jun-10 11:00 
GeneralRe: Sending a keystroke to all applications Pin
Hristo-Bojilov3-Jun-10 11:22
Hristo-Bojilov3-Jun-10 11:22 
AnswerRe: Sending a keystroke to all applications Pin
Anshul R9-Jun-10 4:03
Anshul R9-Jun-10 4:03 
QuestionMessage Removed Pin
2-Jun-10 3:44
professionalN_tro_P2-Jun-10 3:44 
AnswerRe: Loading Objects with reflection Pin
Pete O'Hanlon2-Jun-10 4:21
mvePete O'Hanlon2-Jun-10 4:21 
GeneralMessage Removed Pin
2-Jun-10 6:27
professionalN_tro_P2-Jun-10 6:27 
AnswerRe: Loading Objects with reflection Pin
Luc Pattyn2-Jun-10 6:57
sitebuilderLuc Pattyn2-Jun-10 6:57 
GeneralMessage Removed Pin
2-Jun-10 7:22
professionalN_tro_P2-Jun-10 7:22 
AnswerRe: Loading Objects with reflection Pin
Luc Pattyn2-Jun-10 7:30
sitebuilderLuc Pattyn2-Jun-10 7:30 
GeneralMessage Removed Pin
2-Jun-10 8:03
professionalN_tro_P2-Jun-10 8:03 
GeneralRe: Loading Objects with reflection Pin
Luc Pattyn2-Jun-10 8:09
sitebuilderLuc Pattyn2-Jun-10 8:09 
GeneralMessage Removed Pin
2-Jun-10 8:33
professionalN_tro_P2-Jun-10 8:33 
GeneralRe: Loading Objects with reflection Pin
Luc Pattyn2-Jun-10 8:36
sitebuilderLuc Pattyn2-Jun-10 8:36 
GeneralMessage Removed Pin
2-Jun-10 9:16
professionalN_tro_P2-Jun-10 9:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.