adalton11 Posted December 3, 2004 Posted December 3, 2004 (edited) 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 Edited December 3, 2004 by adalton11 Quote
Varghjärta Posted December 4, 2004 Posted December 4, 2004 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. Quote
Wile Posted December 4, 2004 Posted December 4, 2004 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. Quote Nothing is as illusive as 'the last bug'.
Simcoder Posted December 4, 2004 Posted December 4, 2004 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. Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.