Not sure how to actually use this GlobalHotKey code

I followed this tutorial here to get a GlobalHotKey running up.

Everything works great and I have no errors except, I now have no idea how to check to see if the key combination is pressed.

Before, I did something like f (e.KeyCode == Keys.Oemtilde)

The new code I have is

 public Form1() { InitializeComponent(); ghk = new AutoClicker.GlobalHotkey(Constants.CTRL, Keys.Oemtilde, this); } 

How can I go about making an if statement with this new piece of code?

by Dgameman1 via /r/csharp

Leave a Reply