In Visual Studio, how can I get the keys pressed while the application is not open by C#?
I made a game trainer and I already got it working. Problem is that I have to continuously open the trainer if I want to use the cheats. So every time I open up the game, I minimize the trainer. But if the trainer is not selected, I cant press ctrl+e or ctrl+q to activate the shortcut.
How can I get the trainer to get pressed keys while not open?
I have something like this right now.
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (Control.ModifierKeys == Keys.Control)
{
if (e.KeyCode == Keys.E) //When ctrl+e pressed, this runs
{
}