Systray Right Click

adalton11

Newcomer
Joined
Mar 23, 2004
Messages
10
I have a screen capture program running in the systray, when a user double clicks on it, it captures the screen and asks where to save the program. I need to know how to give the program the ability to be right clicked for more functionality(i.e. Exit, Options, and so on)


Also, can someone teach me how to only capture an active window
 
Last edited:
Umm.. You mean right click on the icon in systray and be presented with a context menu?.. Simply assosiate a context menu with the tray thingy whatever it's called, then that menu will show with right clicking in the tray.
 
If you are using the normal system tray control, it has events that you can use for click, doubleclick, mousedown/up/move.

You can also do as Varghjärta suggested as that will be the easiest.

Dont know about how to capture the contents of a window but I do see a problem. If you capture a window, you probably want to capture the active window. However, if I have to navigate through a menu, the active window becomes something else than the window I want to capture. You probably have to create a keyboard shortcut that is always monitored, to capture a specific active window.
 
Thats a good point, considering that an active window might cover up the systray and everything else on the screen. It might be a good idea to implement a system wide hook and set a hotkey to do the capturing.
 
Back
Top