Program that listen keyboard events when its minimized? Windoiws Forms C#

1.3k Views Asked by At

I wanted to ask.Im doing a program that when its minimized or some other window are opened to read my keys and if "specific" is pressed to do something. I used InputSimulator but its working only when a program is in normal window state.if program are minimized. didnt responde?What should i use to make it working in background ?

1

There are 1 best solutions below

0
koviroli On

You should use RegisterHotKey API functions to regist hotkeys for your processes, also here is an example for it.