private static void CatchTouch(KeyboardHooker hooker, int code, IntPtr wParam, IntPtr lParam) { if (code >= 0 && (int)wParam == KeyboardHooker.WM_KEYDOWN && Marshal.ReadInt32(lParam) == 162) { r.StartRecording(null, null); } }
public App() { KeyboardHooker = new KeyboardHooker(); MouseHooker = new MouseHooker(); KeyboardHooker.ActivateHook(); MouseHooker.ActivateHook(); }
private static void TouchAction(KeyboardHooker k, int code, IntPtr wParam, IntPtr lParam) { if ((int)wParam == KeyboardHooker.WM_KEYDOWN && Marshal.ReadInt32(lParam) == 162) r.ExecuteActions(null, null); }
public KeyboardHooker() { Functions = new List<KeyboardHookFunction>(); Instance = this; }