Important alert: (current site time 7/16/2013 2:25:02 AM EDT)
 

winzip icon

Q-Clips 4.01: A Windows Clipboard Extender (Update: 27 December 2007)

Email
Submitted on: 12/27/2007 11:53:28 AM
By: Tom Moran 
Level: Advanced
User Rating: By 25 Users
Compatibility: VB 6.0
Views: 21078
author picture
(About the author)
 
     Q-Clips 4.01 is a Windows Clipboard Extender that enhances and extends the Windows clipboard by remembering all items (text, graphics, color numbers and files) that are copied to the clipboard and storing them in a collection for later pasting... even after you shut off your computer. The program also features a built in Screen Capture tool, with magnify window, so you can capture any portion of the screen, the desktop, or active window, and send the contents to Q-Clips. While you work in your editor, word processor, graphic imaging program or virtually any Windows program, Q-Clips sits in your windows system tray... capturing all data that is copied to the Windows Clipboard. When you need to access those clips press the system wide HotKey... click on the desired clip and it will automatically paste into your program. Many features and options including saving Images as JPEG, multiple capture types, color themes and a color capture tool. For details on all features and their use view the Q-Clips Help Manual included in this upload and available from the Q-Clips Help Menu. (Ver. 4.01 Update: Added View Color Tool to view actual color of captured color number and more. Please see readme.txt file for all Update History Details.)

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :Q-Clips 4.01: A Windows Clipboard Extender (Update: 27 December 2007)
'**************************************
Several
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 3 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

9/27/2007 4:48:25 AMMndsoft

Good code! I like it.
welcom to www.mndsoft.com ,thks!
(If this comment was disrespectful, please report it.)

 
9/27/2007 8:58:59 AMRudyM

Very, very nice! The program is extremely helpful. I will be using this program frequently. Thanks!
(If this comment was disrespectful, please report it.)

 
9/28/2007 8:27:24 AMJoaquin Marcher

nice =) thanks for share
(If this comment was disrespectful, please report it.)

 
9/28/2007 9:09:28 AMMark

Anyway to set files back into the clipboard? It shows the path but loads back into the clipboard as text. Just wondering if I'm missing something. Thanks for sharing.
(If this comment was disrespectful, please report it.)

 
9/30/2007 1:39:05 PMJim H.

I like this alot. Thanks
(If this comment was disrespectful, please report it.)

 
9/30/2007 11:41:59 PMDamon

Hey this is really a nice one.... I liked the way everything in the clipboard is preserved ... Keep up the good work and thanks for sharing this
(If this comment was disrespectful, please report it.)

 
9/30/2007 11:50:02 PMTom Moran

Hi Mark: You are correct. Files to be copied appear as text and are pasted as text. Initially had request from users to have the filenames available as text. Now I've created a way to do both. Version 3 update (to be posted this week) will paste to clipboard and programs like Windows Explorer as actual file copies. To view filenames as text you can choose Open, Open with..., or by left clicking on Thumbnail. Thanks for the feedback!
(If this comment was disrespectful, please report it.)

 
10/1/2007 2:24:59 PMMark

Awesome work Tom. Looking forward to the update. Again...Thanks for sharing!
(If this comment was disrespectful, please report it.)

 
10/3/2007 8:10:36 AMMark

Nice update Tom. File pasting works great. Wish I could give you 5 again.. you deserve it!

(If this comment was disrespectful, please report it.)

 
10/3/2007 10:06:41 PMTom Moran

Okay... update now available. Couple new features plus a modified paste feature for file-copy clips. See the readme.txt file for details - Tom
(If this comment was disrespectful, please report it.)

 
10/5/2007 9:52:49 AMjasonh

Sorry but this doesnt work, take a screen shot then view the captured image and its blank, doesnt matter what I try its blank, something has changed since the previous version as the one before the update worked.
(If this comment was disrespectful, please report it.)

 
10/6/2007 12:31:34 AMTom Moran

Hey Jason: I downloaded this update file from PSC on three different computers today after receiving your comment. Two XP machines and one Vista. The screen capture works perfectly on all three systems. I'm not sure what's going on with your system... especially since the first version worked on your computer.
The only change to the screen capture module in this update was adding the ReleaseDC command in the Load event in frmCapture.frm. See if commenting that line out makes any difference.
The ReleaseDC function releases a device context (DC), freeing it for use by other applications. It's not critical to successful operation of this capture routine and could be removed since I believe the DC is released by VB when the capture form is unloaded anyway. Please let me know if that made a difference on your system. Also I'm curious as to the operating system/config you are using.
(If this comment was disrespectful, please report it.)

 
10/6/2007 11:13:03 AMIan

A couple of minor comments. There are a lot of occasions where you use variants (e.g. Dim i, j) instead of properly defined variables which is very inefficient. Also your definition of Writeprivateprofilestring is incorrect - it returns a long not an integer as you have it. However this is probably the best clipboard manager I've seen - 5 from me.
(If this comment was disrespectful, please report it.)

 
11/2/2007 3:31:03 PMAlfred

This is a really great thing; thanks for sharing. The Capture function is well made but here I have a proposal: In the most cases where we have to take a screen shot, we would like to save the Active Window (e.g. an Explorer Window showing a diretcory or Error messages delivered by MsgBox).

So Q-Clips should have a Button "Capture Active Window" and say in a MsgBox: "Five seconds after you close this dialog the active window will be captured. Please activate the window you want to capture!

I have the appropriate code and will try to integrate it. But I think this option would be usefull for the whole world using your excellent Q-Clips... ;-)
(If this comment was disrespectful, please report it.)

 
11/3/2007 11:37:52 AMTom Moran

Hi Alfred: Thank you for the kind words and feedback. Actually capturing the active window is already built in. Just press Alt-PrtScn buttons on your keyboard and the active window will be captured and saved in Q-Clips.
(If this comment was disrespectful, please report it.)

 
11/3/2007 4:09:59 PMAlfred

Wow - already implemented: Alt/PrintScreen! Mea culpa, Tom; I should RTFM (Read The F_%_*ing Manual)!!! The PDF is a perfect User Guide - but as always - we don't read it. Sorry - and thank you! Q-Clips will now have the same status on my systems as Kernel32... ;-)
(If this comment was disrespectful, please report it.)

 
11/20/2007 2:48:30 AMshartack

Excellent code and enjoy using it. One thing to make this better (in my view) would be to save the files as .png. 5*'s.
(If this comment was disrespectful, please report it.)

 
11/20/2007 4:23:28 AMAOTChronoTrigger

Alfred: More correctly, you should read the Windows Help documentation. Alt+PrintScreen has been built into Windows since Windows 95, along with dozens of other keyboard shortcuts. As for the code...: There's a lot that can be shortened and simplified, such as all of the successive calls to the INI APIs (WritePrivateProfileString, etc.). Also, as a suggestion, upon saving, you should ZIP or otherwise archive the collected files together, and name the saved files with the date/time, and add a variable to hold a session ID that can be used to differentiate between which archive(s) hold data for the present application session, and which ones are simply archives; on this note, if the auto-save functionality is enabled, rather than ZIPping the files, you should simply name the files sequentially and ZIP/archive them all at the end of the session; it may even prove useful to save the files in some sort of file system structure, such as Cache\[Date]\[SessionID], and then [CONT->]
(If this comment was disrespectful, please report it.)

 
11/20/2007 4:24:33 AMAOTChronoTrigger

[<-CONT] simply ZIP all of the day's sessions at the end of the day, or collect and archive based on the current session when the user chooses to save the session. Also, you should reduce the size of your resources, as half of the executable size is simply bitmaps. One more idea: List the data length of each entry. Overall a decent submission; with a few slight modifications, this is also VB5-compatible.
(If this comment was disrespectful, please report it.)

 
11/25/2007 1:59:38 PMThePiper

AOTChronoTrigger: Thanks. But the Windows/Office-complex is much too large to Read all TFM and to pick up all the hidden features in only one lifetime ;-)
Alfred
(If this comment was disrespectful, please report it.)

 
11/27/2007 1:57:53 AMM.Naveen Swamy

good work buddy :)
(If this comment was disrespectful, please report it.)

 
12/14/2007 7:19:51 PMPhilip Zac

Nice code, one suggestion when saving files please give the option to save the file as text with the option ANSII and UTF8, SO THAT UNICODE TEXT WILL COPIED CORRECTLY. OTHERWISE IT SAVE AS RTF FILE BUT THESE FILES DOEST SHOW CORRECTLY WITH WORD (RTF)
(If this comment was disrespectful, please report it.)

 
12/17/2007 12:14:21 PMJames Tracy

Outstanding submission! BLEW ME AWAY!!

Thanks for sharing...
Sincerely,
James E. Tracy
www.JamesEdwardTracy.com

(If this comment was disrespectful, please report it.)

 
1/10/2008 1:20:40 PMHermano

Mr. Tom Moran, where may I obtain a copy of the PDF manual which unfortunately wasn't included in my project download?

Thank you in advance for your time and trouble.

Herman Carnell McCrea
(If this comment was disrespectful, please report it.)

 
1/11/2008 4:05:40 PMHermano

Mr. Moran, thank you for sending the pdf file, and I admit I inadvertently overlooked it in the original download from Planet Source Code. Great Program!

Herman Carnell McCrea
(If this comment was disrespectful, please report it.)

 
1/11/2008 9:38:51 PMTom Moran

Hermano: The Q-Clips Help Manual (PDF) is included in the download and is accessible from the Help Menu of Q-Clips. Enjoy! - Tom
(If this comment was disrespectful, please report it.)

 
11/7/2010 6:11:31 AMRde

Hi Tom

This prog is truely brilliant!

In responce to some comments above, I quite like the way the old and new clips all list together just like a real Windows utility, rather than like a more complicated application - the immediacy is what I love about it..

cont'd
(If this comment was disrespectful, please report it.)

 
11/7/2010 6:15:54 AMRde

I have made some small changes - to skip adding repeat items, and to skip adding all the VB Ide icons that are blasted to the clipboard when it loads. Would be happy to pass these changes on to you.

Again, great utility, and big thanks for sharing.

Happy coding,
Rd :)
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.