Click here to Skip to main content
15,902,846 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I'm trying to study c# and I'm making cheats for a game to impoof..
I want to toggle a bool (True and False) by clicking f1 or f2.
public bool bAimbotEnabled = true;
public bool bVisibleCheck = true;


Thank you for helping!

What I have tried:

I tried nothing much just yet.. Can't find much..
Posted
Updated 22-Jul-18 1:02am

1 solution

You need to add an event handler that captures keypresses and test for F1 or F2 being pressed.
 
Share this answer
 
Comments
Member 13921422 6-Aug-18 14:10pm    
I'm kinda new to this, how?

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