DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

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

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
codename: CopyCap - a tool to copy caption text
« on: August 01, 2008, 05: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.

[attach=#]

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, 07:28 AM by lanux128 »

TucknDar

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

justice

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
Re: codename: CopyCap - a tool to copy caption text
« Reply #2 on: August 01, 2008, 08: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
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: codename: CopyCap - a tool to copy caption text
« Reply #3 on: August 01, 2008, 02:42 PM »
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
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: codename: CopyCap - a tool to copy caption text
« Reply #4 on: August 02, 2008, 02:31 AM »
:) 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, 11:48 AM by skrommel »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: codename: CopyCap - a tool to copy caption text
« Reply #5 on: August 02, 2008, 03:20 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.

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

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: codename: CopyCap - a tool to copy caption text
« Reply #6 on: August 02, 2008, 08: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
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: codename: CopyCap - a tool to copy caption text
« Reply #7 on: August 02, 2008, 08: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
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: codename: CopyCap - a tool to copy caption text
« Reply #8 on: August 02, 2008, 09: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
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: codename: CopyCap - a tool to copy caption text
« Reply #9 on: August 02, 2008, 11:51 AM »
:) I've changed the name to Captain. Again, sorry lanux128.

Skrommel

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: codename: CopyCap - a tool to copy caption text
« Reply #10 on: August 03, 2008, 07:32 AM »
nice play on the words, Caption -> Captain. btw, i've also posted mine as well. :)

nogojoe

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 174
Re: codename: CopyCap - a tool to copy caption text
« Reply #11 on: August 03, 2008, 08: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, 08:52 AM by nogojoe »

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
Re: codename: CopyCap - a tool to copy caption text
« Reply #12 on: August 03, 2008, 08: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
    • Coding Snacks
Re: codename: CopyCap - a tool to copy caption text
« Reply #13 on: September 15, 2008, 09: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.
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: codename: CopyCap - a tool to copy caption text
« Reply #14 on: October 09, 2008, 07:29 AM »
:) I've just uploaded Captain v1.2.

Changes:

- Updates changing captions

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

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Re: codename: CopyCap - a tool to copy caption text
« Reply #15 on: October 10, 2008, 03:38 PM »
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:
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: codename: CopyCap - a tool to copy caption text
« Reply #16 on: November 01, 2008, 02:54 PM »
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
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: codename: CopyCap - a tool to copy caption text
« Reply #17 on: November 01, 2008, 04:47 PM »
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
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: codename: CopyCap - a tool to copy caption text
« Reply #18 on: November 02, 2008, 03:38 AM »
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
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: codename: CopyCap - a tool to copy caption text
« Reply #19 on: November 03, 2008, 01:47 AM »
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
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: codename: CopyCap - a tool to copy caption text
« Reply #20 on: November 03, 2008, 03:31 AM »
Ewwwwwwwwww :(

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: codename: CopyCap - a tool to copy caption text
« Reply #21 on: May 12, 2009, 05: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
  • *
  • Posts: 17
Re: codename: CopyCap - a tool to copy caption text
« Reply #22 on: October 08, 2012, 11:36 AM »
It would be mega-awesome to be able to create rules (with regexp support, plox! :D) for auto caption changing.

Original address: https://www.donationcoder.com/forum/index.php?topic=14275.0