Click here to Skip to main content
14,735,733 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello guys I tried to make cheat for game but send keys method didn't work
for example make auto run for game
SendKeys.Send("W");
didn't work what should I do ?

What I have tried:

SendKeys.Send("W");
Posted
Updated 14-Nov-20 1:18am
v2

1 solution

SendKeys will not work. If you read the documentation (SendKeys.Send(String) Method (System.Windows.Forms) | Microsoft Docs[^]) it sends the key to the Active application - which is the app calling SendKeys, not your game.

Since it's a game, they chances are there is little you can do at all - many access the hardware pretty much directly for speed reasons, and Windows messaging is nothing like real time!

And writing a game cheat counts as malicious behavior - it isn't fair on other players.
We do not condone, support, or assist in the production of malicious code in any way, form, or manner. This is a professional site for professional developers.

If you want to know how to create such things, you need to visit a hacking site: but be sure to disable all firewalls and antivirus products first or they won't trust you enough to tell you.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900