Home > Software engineering >  Postmessage can only send the game window esc
Postmessage can only send the game window esc

Time:09-20

Postmessage can only send the esc key, to the game window, and press abcdfdskkjfkswsx have numeric keys, small keyboard key figures are useless

There are in the game can chat window dialog box opens in the dialog box to send any key message
But the dialog box to close such as S key is open the bag, and then press the S key doesn't work if S has opened the chat dialog work
Have you tried wm_char wm_keydown useless
Then use spy++ can see message but just can't function.. What??
Shielding the game didn't, I use the desert tool can normal use any button with the tool of others, but I don't want to I want to write their own a

CodePudding user response:

Just looking for a post said and I can't press the ESC key but instead he can press letters and Numbers don't know what circumstance

CodePudding user response:

Try use SendInput or keybd_event, the game will generally have DirectInput without message schema


CodePudding user response:

refer to the second floor zgl7903 response:
try use SendInput or keybd_event, the game will generally have DirectInput without message schema


keybd_event can use but not the background function, I want the background, SendInput haven't tried,,

CodePudding user response:

For other processes try AttachThreadInput

CodePudding user response:

More often than not, now the game framework will handle this keyboard the news, because it can reduce a large number of script to hang.

So you use news basic did not have the chance of success.

Let's use memory to hang.
  • Related