Home > Net >  Software by code to register the shortcut key. Then blocked the whole system. How to continue to use
Software by code to register the shortcut key. Then blocked the whole system. How to continue to use

Time:11-14

The code on the lot

Shortcuts intercepted

https://github.com/pengxiaobo123/kuaijiejian

Software by code to register a shortcut key, intercepting the whole system, how to continue to use other software,

How can let other software continue to get blocked by my own writing software shortcuts?

CodePudding user response:

You can use a hook, hook can continue to call hook chain the following program

CodePudding user response:

reference 1/f, guiyang horse Ma Shanfu plugging waterproof engineering professional maintenance of swimming pool response:
can use hook, hook can continue to the following program call hook chain

I sounds like the use of hooks, now is my code I won't be changed, don't know how to let him continue to use,

CodePudding user response:

Interception, return true or false, the decision is whether to be passed over to the next

CodePudding user response:

The
reference 3 floor puzzle bobble reply:
interception, return true or false, the decision is whether to be passed over to the next

I've tried, to false is also blocked the
Private IntPtr MainWindowProc (IntPtr HWND, int MSG, IntPtr wParam, IntPtr lParam, ref bool handled)
{
The switch (MSG)
{
In case the Win32. WmHotkey:
{
Int the sid=wParam. ToInt32 ();
If (sid==hotKeyDic [" Q "])
{
Messenger. The Default. Send (Key. Q, "KeyDownButton");
}
Else if (sid==hotKeyDic [" P "])
{
Messenger. The Default. Send (Key. P, "KeyDownButton");
}
handled=false;
break;
}
}
Return IntPtr. Zero;
}
  •  Tags:  
  • C#
  • Related