i have got a program running but i want a certian key press combination to run
i want to have the user to press Ctrl + Alt + Insert Keys to activate a message box but at the moment all you have to do it press one of them keys to activate it or even any key on the keyboard will activate the window. how can i make it so it waits for all of the keys?
this is the code i have soo far
Code:
void __fastcall TForm1::FormKeyDown(TObject *Sender, WORD &Key,
TShiftState Shift)
{
if(VK_CONTROL && VK_MENU && VK_DELETE)
{
ShowMessage("You Pressed the right sequence of keys to enter");
}
Thanks