Hi,Its possible to display message when user press control key using this example.
Its also posible to display message when user press control V by replacing 162 with 86
I need this to work when user press control v(paste) operation
How combination can be added to work.
public static IntPtr hookProc(int code, IntPtr wParam, IntPtr lParam)
{
if (code >= 0 && wParam == (IntPtr)WM_KEYDOWN)
{
int vkCode = Marshal.ReadInt32(lParam);
if (vkCode == 162 )
{
Form1 foo = new Form1();
foo.PrintScreen();
MessageBox.Show("You pressed a CTR");
}
}
return (IntPtr)1;
//else
// return CallNextHookEx(hhook, code, (int)wParam, lParam);
}