I made a trainer using Visual Studio C #, everything is working fine when changing values with buttons, but now i would like to create hotkeys which would work while im in game.
I tried this code, but it doesnt work while im in game (only when im in the Form)
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
switch(keyData)
{
case Keys.F2:
// do something...
return true;
case Keys.F3:
// do something...
return true;
case Keys.F4:
// do something...
return true;
default:
return base.ProcessCmdKey(ref msg, keyData);
}
}
Can somebody help me? Thanks :D