Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1448

ScreenClip

$
0
0

ScreenClip - A Utility for Taking Clipped Images of your Desktop


This is just a small utility for those who prefer a bit more than what the Windows 11 screen clipping allows.

This ScreenClip utility allows you to tweak-and-adjust to get exactly what you want.

It has both "Copy" (to clipboard) and "Save" (as a file) options. The "Save" option does not use the clipboard at all, and has PNG, JPG, BMP, WMF, EMF, & GIF options. So, you can choose your poison with respect to saved image formats. Also, it remembers the previous format you used as well as the folder you saved to.

There are also hotkeys for the menu options:
Flip Ctrl+F
Copy Ctrl+C
Save Ctrl+S
Explore Ctrl+E
Min to Tray Ctrl+M
Exit Escape
It always minimizes to the SysTray. Clicking the tray icon simply toggles whether or not you can see this ScreenClip utility.

This is also a good example of a roll-your-own TitleBar and Menu system, as I had to do that to make the Flip option work the way I wanted.

It also has code in it for capturing (as a picture) your complete desktop, for those who may want that.

The client-area of it is transparent, so it's a bit strange to take a screenshot of this utility, but here it is (with Flip activated):

Name:  ScreenClip.png
Views: 31
Size:  52.5 KB

You just resize (or move) it to get the exact desktop clip you want, and then either copy it or save it. The "Explore" option is nice too. It just opens up a Windows File Explorer into the folder where you last saved a desktop clip.

Ohh, and no subclassing. I went back-and-forth on this as I was developing this utility. In the end, I managed to do everything I wanted without any need for subclassing nor hooks. So, it's completely IDE safe.

And the VB6 source project is attached.
Attached Images
 
Attached Files

Viewing all articles
Browse latest Browse all 1448

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>