(VB or C#) Run app in system tray and listen to keyboard input even when the app is not in focus
- by Avinash Sonee
I want to make an app which on loading sits in the system tray and even after I open another program (say notepad or vlc or anything) i.e. even when the app is not in focus and if I press "G" on my keyboard, the tray icon should show a tool tip - "key G is pressed".
I have tried several codes but nothing works when the app goes out of focus. I can use Register Hot Key (http://msdn.microsoft.com/en-us/library/ms646309(VS.85).aspx) but it needs a modifier also (like Ctrl or Alt etc. along with my key G). So, is there any way I can achieve this?
something which many tray icons do like antivirus apps, etc.
and I do not want to use AutoHotkey application. I want to build one but need some help.
Thanks!