Welcome Guest.   Make a donation to an author on the site August 20, 2014, 07:44:39 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2013! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 3 4 5 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: NANY 2010 Release: ClipTrap  (Read 42355 times)
skwire
Charter Member
***
Posts: 4,024



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« on: December 12, 2009, 02:51:26 PM »

NANY 2010 Entry Information

Application Name ClipTrap
Short Description Aggregate text copied to the clipboard
Supported OSes Windows XP/Vista/7 (Probably works, but untested on, Windows 8)
Web Page ClipTrap
Download Link Zip file (portable)
System Requirements Windows OS
Version HistoryChangelog
Author Jody Holmes (Skwire)
Screencast (courtesy of mouser, thanks!)


Description
ClipTrap watches the clipboard and keeps track of copied text in its window.  I initially wrote it for my workplace where we use terminal emulators (SecureCRT, PuTTY, etc.) constantly and often need to capture several successive bits of output from various routers, switches, and other devices on the network.  I fleshed it out and prettied it up for NANY 2010.  I use this in conjunction with ArsClip, a fantastic clipboard caching tool.

Features
  • Customizable font.
  • Minimize to tray option.
  • Unicode capable.

Planned Features
I cater to the people so suggest something.   :D

Screencast
<a href="http://www.youtube.com/watch?v=80HsyVvw1-I" target="_blank">http://www.youtube.com/watch?v=80HsyVvw1-I</a>

Screenshots


Usage
Installation
Unpack the archive to its own folder and run ClipTrap.exe.

Uninstallation
Delete the folder you unpacked the archive to.  Nothing is written to the registry.

Known Issues
It wouldn't be software if it didn't have issues.  Let me know if you find any.
« Last Edit: March 13, 2014, 05:23:11 PM by skwire » Logged

ewemoa
Honorary Member
**
Posts: 2,409



View Profile Give some DonationCredits to this forum member
« Reply #1 on: December 22, 2009, 12:39:41 AM »

Interesting idea smiley

I tried it out for a bit and it seemed to work fine for the most part.

I encountered a problem when trying to work w/ certain kinds of strings -- e.g. some CJK-ish stuff didn't seem to go over very well.

The following series of steps appears to reproduce the problem in my environment:

  • Ensure ClipTrap is running
  • Visit translate.google.com
  • For text to translate, enter "test" - no double quotes
  • Choose to translate from English to Japanese
  • Select and copy the result of the translation -- should be two characters
  • In ClipTrap, observe that the second character seems different

Do you encounter the same issue?
Logged
skwire
Charter Member
***
Posts: 4,024



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: December 23, 2009, 03:35:03 PM »

Do you encounter the same issue?

No, I don't.  However, I run my computers with Japanese as the default language and also have them set up with Japanese set as the language to use for non-Unicode applications.  It's possible that is what allows me to see the Kanji for shiken properly.
Logged

ewemoa
Honorary Member
**
Posts: 2,409



View Profile Give some DonationCredits to this forum member
« Reply #3 on: December 23, 2009, 04:13:47 PM »

Thanks for the response.

Perhaps I can try ClipTrap out on a machine with a Japanese environment taking into account some of what you mentioned.

BTW, I happened across a thread titled "UNICODE version of AutoHotkey" at the AHK forum.  Are you familiar with this?


Logged
ewemoa
Honorary Member
**
Posts: 2,409



View Profile Give some DonationCredits to this forum member
« Reply #4 on: December 23, 2009, 07:10:54 PM »

I've done some testing.

Here's what a I found:

Quote
Japanse OS + Japanese set as the language to use for non-Unicode applications
-Japanese text seems OK
-Korean text doesn't

Korean OS
-Korean text seems OK
-Japanese text doesn't

English OS + Japanese set as the language to use for non-Unicode applications
-Japanese text seems OK
-Korean text doesn't

English OS + Korean set as the language to use for non-Unicode applications
-Korean text seems OK
-Japanese text doesn't

So if I had to guess I'd say that the language to use for non-Unicode applications seems to be relevant...
Logged
skwire
Charter Member
***
Posts: 4,024



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: December 24, 2009, 07:50:09 AM »

BTW, I happened across a thread titled "UNICODE version of AutoHotkey" at the AHK forum.  Are you familiar with this?

Yes, I am; I was letting it mature a bit before attempting much with it.  However, in light of this issue, I'll give it a go compiling ClipTrap with it and see if it solves anything.  Thanks for your in-depth testing as well.  I very much appreciate it.
Logged

ewemoa
Honorary Member
**
Posts: 2,409



View Profile Give some DonationCredits to this forum member
« Reply #6 on: December 24, 2009, 04:02:26 PM »

However, in light of this issue, I'll give it a go compiling ClipTrap with it and see if it solves anything.

Woohoo!  Looking forward to this.  I have my fingers crossed -- well, I did for an instant Wink
Logged
skwire
Charter Member
***
Posts: 4,024



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: December 24, 2009, 07:33:00 PM »

Please test this build:  http://skwire.dcmembers.c...trap/ClipTrap_Unicode.zip
Logged

ewemoa
Honorary Member
**
Posts: 2,409



View Profile Give some DonationCredits to this forum member
« Reply #8 on: December 24, 2009, 11:36:17 PM »

Thanks for the new build.

Initially it didn't look so good, but configuring the font to MS Mincho seemed to make things work out.

So it's looking more usable Thmbsup
Logged
ewemoa
Honorary Member
**
Posts: 2,409



View Profile Give some DonationCredits to this forum member
« Reply #9 on: January 01, 2010, 11:26:42 PM »

I was using ClipTrap nicely today when I accidentally clicked on the "Clear window text" button before making use of the content I was accumulating Sad

Any possibility of an undo or option to confirm clearing of the window text?
Logged
skwire
Charter Member
***
Posts: 4,024



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #10 on: January 02, 2010, 09:23:03 AM »

Website | Download
v1.0.1 - 2010-01-02
    + Added an option that will allow for confirmation of the "Clear window text" button.  Go to Options, Configure to set it.  (Thanks, ewemoa)
    + Added a Unicode build to the zip.
Logged

ewemoa
Honorary Member
**
Posts: 2,409



View Profile Give some DonationCredits to this forum member
« Reply #11 on: January 02, 2010, 04:03:45 PM »

Thanks!

Seems to work fine here smiley
Logged
skwire
Charter Member
***
Posts: 4,024



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #12 on: January 02, 2010, 05:10:10 PM »

Good to hear.  Thanks for the feedback.
Logged

Isaac Patch
Charter Member
***
Posts: 3

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #13 on: January 05, 2010, 08:30:58 AM »

Hi. I love ClipTrap. So small and useful, I have it in my Startup folder. Is there a way to make it start up, already minimized to the tray? Thanks, Ike
Logged
skwire
Charter Member
***
Posts: 4,024



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #14 on: January 06, 2010, 05:12:53 AM »

Website | Download
v1.0.2 - 2010-01-06
    + Added "Minimize on startup" option.  Go to Options, Configure to set it.  (Thanks, Isaac Patch)
Logged

Isaac Patch
Charter Member
***
Posts: 3

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #15 on: January 06, 2010, 03:27:59 PM »

Thank you Skwire. Minimizing at start up works like a charm.
Logged
ewemoa
Honorary Member
**
Posts: 2,409



View Profile Give some DonationCredits to this forum member
« Reply #16 on: January 13, 2010, 06:41:15 AM »

I experienced not seeing the ClipTrap window today even after choosing "Show ClipTrap".  It turns out that I had rotated my screen smiley  A little tweaking of the ini file plus restarting the application seemed to fix things.

I don't know if it's worth trying to do anything about it, but I thought I'd mention it on the off-chance someone else ever encounters the issue.
Logged
skwire
Charter Member
***
Posts: 4,024



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #17 on: January 13, 2010, 10:49:56 AM »

That's why I keep a "center window" hotkey in my main AHK script...for those windows that get stuck off-screen.  Or, you can use this procedure to bring off-screen windows back.

1) Focus the window by clicking its taskbar button.
2) Press alt-space, m, down-arrow.
3) Now, without clicking your mouse at all, move the mouse around.  Your window should be stuck to the pointer and easy to retrieve.
Logged

tomos
Charter Member
***
Posts: 8,440



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #18 on: January 13, 2010, 01:09:28 PM »

1) Focus the window by clicking its taskbar button.
2) Press alt-space, m, down-arrow.
3) Now, without clicking your mouse at all, move the mouse around.  Your window should be stuck to the pointer and easy to retrieve.

that's a neat trick smiley
Logged

Tom
ewemoa
Honorary Member
**
Posts: 2,409



View Profile Give some DonationCredits to this forum member
« Reply #19 on: January 13, 2010, 07:25:33 PM »

That's why I keep a "center window" hotkey in my main AHK script...for those windows that get stuck off-screen.

Nice!  Sounds like a good idea for a separate tool/script -- does it work for multi-display situations too?

Quote
Or, you can use this procedure to bring off-screen windows back.
1) Focus the window by clicking its taskbar button.
2) Press alt-space, m, down-arrow.
3) Now, without clicking your mouse at all, move the mouse around.  Your window should be stuck to the pointer and easy to retrieve.

I've tried this one before with success -- though I don't remember whether I've tried it with multiple displays.

In any case -- thanks for the tips  Thmbsup
Logged
skwire
Charter Member
***
Posts: 4,024



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #20 on: January 13, 2010, 11:04:05 PM »

Nice!  Sounds like a good idea for a separate tool/script -- does it work for multi-display situations too?

It will center the window to the main display.  Here's the code snippet:

Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. WinGetPos, , , Width, Height, A
  2. WinMove, A, , ( A_ScreenWidth / 2 ) - ( Width / 2 ), ( A_ScreenHeight / 2 ) - ( Height / 2 )

Nothing to it, really.
Logged

ewemoa
Honorary Member
**
Posts: 2,409



View Profile Give some DonationCredits to this forum member
« Reply #21 on: January 14, 2010, 03:15:52 AM »

Thanks for the code!

It seems to work fine in my limited testing of two screens smiley


P.S. Using your code seems more robust than the alt-space / window menu alternative.  I tested with an Emacs window and found that it doesn't bring up a window menu in response to alt-space.  Perhaps this type of situation is rare, but I find it nice to have this alternative.
Logged
sunsetdan
Participant
*
Posts: 1

View Profile Give some DonationCredits to this forum member
« Reply #22 on: January 19, 2010, 05:32:48 AM »

Thank you skwire.
 Seems to work great so far.. Cool
Logged
skwire
Charter Member
***
Posts: 4,024



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #23 on: January 19, 2010, 05:40:38 AM »

Thank you skwire.
 Seems to work great so far.. Cool

You're welcome; glad you've found it useful.
Logged

skwire
Charter Member
***
Posts: 4,024



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #24 on: July 30, 2010, 11:27:12 PM »

Website | Download
v1.0.3 - 2010-07-30
    ! Fixed a couple of 120 DPI graphical glitches.  (Thanks, cmpm)
Logged

Pages: [1] 2 3 4 5 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.111s | Server load: 0.12 ]