topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 3:31 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: codename: CopyCap - a tool to copy caption text  (Read 42572 times)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
codename: CopyCap - a tool to copy caption text
« on: August 01, 2008, 12:38 AM »
some back-story: sometimes i want to copy a window's titlebar text or edit the caption before taking a screenshot. so i started working on my 'middle-button-magic' tool.

basically you middle-click on a windows titlebar and a menu pops-up where there are commands to copy the caption text (and the windows' class as well) into the clipboard. plus another option to modify the titlebar itself, though any change is temporal and lasts while the program is not refreshed or closed.

ws-CopyCap-1.png

note: AVG inadvertently ate my script just a while ago so please bear with me until i retrieve a backup-copy.
a bit anti-climatic since Skrommel had already whipped up a script in my absence but here is it anyway. :)

P.S. Ack: Deozaan came up with the name - 'CopyCap'. :)
« Last Edit: August 03, 2008, 02:28 AM by lanux128 »

TucknDar

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,133
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #1 on: August 01, 2008, 02:23 AM »
Sounds very cool!

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #2 on: August 01, 2008, 03:45 AM »
I'm not sure if it is useful but feel free to reuse the source for my Autohotkey script TitleChanger if you can improve your program with it Lanux!  :Thmbsup:

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #3 on: August 01, 2008, 09:42 AM »
thanks justice, i'll take a look and see if i can learn something from your script. :)

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #4 on: August 01, 2008, 09:31 PM »
:) Try this one!

Captain - Obtain or change a window's title.

Features:
- Middel click on the caption of the window you need the text of.
- Rightclick the tray menu to change hotkey.



You'll find the downloads and more info at 1 Hour Software by Skrommel.

Skrommel
« Last Edit: August 02, 2008, 06:48 AM by skrommel »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #5 on: August 01, 2008, 10:20 PM »
hehe.. the more the merrier, Skrommel. btw the 'www.1hoursoftware.com' doesn't work this link here works, maybe it's just the PC i'm using.

btw, i'm away from my PC so i can add my script only on Monday. :)

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #6 on: August 02, 2008, 03:19 AM »
hehe.. the more the merrier, Skrommel. btw the 'www.1hoursoftware.com' doesn't work this link here works, maybe it's just the PC i'm using.

both links working here (I'm usually the one with those sort of problems so that's a relief :))

Tom

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #7 on: August 02, 2008, 03:57 AM »
 :o I'm so sorry lanux128! I thought it was a coding snack request, I couldn't see any link in your post! I'll change the name immediately!

Skrommel

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #8 on: August 02, 2008, 04:04 AM »
it's okay, Skrommel. let the name remain as it is, i'll change mine later since i haven't posted it yet. :)

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #9 on: August 02, 2008, 06:51 AM »
 :) I've changed the name to Captain. Again, sorry lanux128.

Skrommel

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #10 on: August 03, 2008, 02:32 AM »
nice play on the words, Caption -> Captain. btw, i've also posted mine as well. :)

nogojoe

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 169
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #11 on: August 03, 2008, 03:39 AM »
nice play on the words, Caption -> Captain. btw, i've also posted mine as well. :)

I've downloaded but it doesn't go.
doesn't reside in the taskbar

checked the script I see it uses the middle button it goes ok
Just runs silently in the backgound .Used to having programs residing in the taskbar
I was writing this up when I got the reply  Thanks I had worked it out.
nogojoe
Often the most convincing people are those who have lost the plot so much they don't recognize the difference between fact and fantasy
« Last Edit: August 03, 2008, 03:52 AM by nogojoe »

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #12 on: August 03, 2008, 03:46 AM »
nice play on the words, Caption -> Captain. btw, i've also posted mine as well. :)

I've downloaded but it doesn't go.
doesn't reside in the taskbar
nogojoe


Middle-click on the title bar of the active window to see the menu.

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #13 on: September 15, 2008, 04:18 PM »
I wonder why captions tend to always return to their previous name with Word windows... And this is exactly ehere I'd need different names for my windows. Strange. Apart from that, nice scripts.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #14 on: October 09, 2008, 02:29 AM »
 :) I've just uploaded Captain v1.2.

Changes:

- Updates changing captions

Skrommel
« Last Edit: October 09, 2008, 02:31 AM by skrommel »

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #15 on: October 10, 2008, 10:38 AM »
This is really cool skrommel. Now I can rename any window. I'll look at the code later and try to understand the magic behind it.  :Thmbsup:

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #16 on: November 01, 2008, 09:54 AM »
Hmmm, neither Captain nor CopyCap seem to handle Japanese text in captions on one of my machines.  Perhaps this is an AHK thing...

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #17 on: November 01, 2008, 11:47 AM »
AHK doesn't support Unicode internally though there are some workarounds in place currently, one of which is in this thread.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #18 on: November 01, 2008, 10:38 PM »
Thanks for a pointer to that thread -- I took a look and although I'm hoping for Unicode support in AHK, looking at the span of time that the thread covers I'm not hopeful for it any time soon...

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #19 on: November 02, 2008, 07:47 PM »
yes, as i understand apparently Unicode support warrants something like a complete rewrite therefore the delay.. :)

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #20 on: November 02, 2008, 09:31 PM »
Ewwwwwwwwww :(

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #21 on: May 12, 2009, 12:13 AM »
a slight variation of this script can be found here, where there is a menu to open the folder of the current program.


CrawlerBrinx

  • Participant
  • Joined in 2012
  • *
  • default avatar
  • Posts: 17
    • View Profile
    • Donate to Member
Re: codename: CopyCap - a tool to copy caption text
« Reply #22 on: October 08, 2012, 06:36 AM »
It would be mega-awesome to be able to create rules (with regexp support, plox! :D) for auto caption changing.