Home > other >  how to disable Keyboard inputs on windows like (temporary)
how to disable Keyboard inputs on windows like (temporary)

Time:12-29

i have problem i'm trying to do new shortcut but if i put the shortcut i made F11 then will happen is full screen , i want to disable Keyboard inputs form windows or just disable the actions form windows i mean (if i press any key i want to put the action not windows put the action)

i create application that raises the volume , i put the volume up "F11" but in google chrome F11 is full screen, there anther application if i press F11 or F10 or F9 it do something and i dont want this happen.

i'm using Visual Studio Windows forms C#

note: my application work in background (i dont want use From1_KeyUp or Down i know this code)

Thank You for help

enter image description here 2 pictures enter image description here

CodePudding user response:

To prevent keys from reaching the target application you must use a low-level keyboard hook and return a non-zero value when you performed your own custom action.

  • Related