Home > Software engineering >  Send button interrupt to process
Send button interrupt to process

Time:10-13

I have A small program is A continuous check kbhit () then use getch obtain input character,

I put this small program for another program B of the child starts,

A. no window, can't find the HWND FindWIndow, can only get to HANDLE

Excuse me what method can let the program received A key message? Sendmessage, such as postmessgae HWND

CodePudding user response:

CodePudding user response:

A process there are always right, through the process of try to obtain the corresponding handle

CodePudding user response:

/SendInput keybd_event () ()
  • Related