Basically what I want done is the ability to set a hotkey and then check if it is being pressed at a later date.
I would use the Keyboard.iskeydown() method, however there is no way to check if a mousebutton is held down.
The Keys enum from System.Windows.Forms contains definitions for mouse buttons however you can't pass a Keys enum value into the isKeyDown method as it only accepts a Key enum value from System.Windows.Input. Is there any way to check if a Keys value is being pressed in the same way?
I must be able to use the hotkey while the form is out of focus.
also, my KeyDown event doesn't detect mouse-presses
private void textBox_AimBotKey_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
hotkey = e.KeyCode;
textBox_SetHotKey.Text = Convert.ToString(e.KeyCode);
}