Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (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 by adalton11
Posted
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.
Posted

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.

Nothing is as illusive as 'the last bug'.
Posted
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.
Whatever thy hand findest to do, do it with all thy heart - Jesus

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...