Nikolai Stoilkov
Nikolai Stoilkov

Reputation: 31

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

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 ?

Upvotes: 1

Views: 1454

Answers (1)

koviroli
koviroli

Reputation: 1453

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

Upvotes: 2

Related Questions