コード例 #1
0
 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);
     }
 }
コード例 #2
0
        public App()
        {
            KeyboardHooker = new KeyboardHooker();
            MouseHooker = new MouseHooker();

            KeyboardHooker.ActivateHook();
            MouseHooker.ActivateHook();
        }
コード例 #3
0
 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);
 }
コード例 #4
0
 public KeyboardHooker()
 {
     Functions = new List<KeyboardHookFunction>();
     Instance = this;
 }