Home > Back-end >  Simulate keystrokes had a problem.
Simulate keystrokes had a problem.

Time:09-20

I use Delphi send WinKawaks game simulator successfully simulate keystrokes, but encountered such A problem: for example, when press the keyboard A key at this time I send A LianZhao simulate keystrokes, but I press A button, the simulator will always response to my LianZhao didn't effect, but when no keyboard, send can simulate keystrokes 100% success here, I also tried to simulate sending A button up, but after raising or continue to respond to hold down A button, excuse me what method can be implemented to hand over control of the keyboard, such as my simulation button again after the response back to the actual keys? Ha, best can give code over food,

CodePudding user response:

Before sending simulation with API
GetKeyboardState
Assess the state of the keyboard, if A press, is A loose, etc

CodePudding user response:

It has been not loosen? I just want to let him loose control,
  • Related