Hi, i want to write a farming bot for a certain game.
What i want to achieve is while playing the game, when i press for example F1 then the service (console program or a .Net Core Worker Service) should press the button for example A,B,C for me. And pressing ESC then the service will stop writing ABC...
This should be happened on a event driven approach.
At the moment i just turn off the console Programm..
Pressing A,B,C is already realized with the "User32.Dll" wrapper. But how can i listen to the F1 or ESC event?
How can i do this with C# on Windows?