Welcome Guest.   Make a donation to an author on the site July 31, 2014, 04:32:54 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.
 
Read the Practical Guide to DonationCoder.com Forum Search Features
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: codename: CopyCap - a tool to copy caption text  (Read 22753 times)
lanux128
Global Moderator
*****
Posts: 6,087



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« on: August 01, 2008, 12:38:00 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.



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. smiley

P.S. Ack: Deozaan came up with the name - 'CopyCap'. smiley

* CopyCap-1.ahk (2.54 KB - downloaded 571 times.)
« Last Edit: August 03, 2008, 02:28:52 AM by lanux128 » Logged

TucknDar
Charter Member
***
Posts: 1,094


Advanced coder of Nowt

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: August 01, 2008, 02:23:53 AM »

Sounds very cool!
Logged
justice
Supporting Member
**
Posts: 1,887



Solve issues simply.

View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: August 01, 2008, 03:45:39 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
Logged

lanux128
Global Moderator
*****
Posts: 6,087



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: August 01, 2008, 09:42:04 AM »

thanks justice, i'll take a look and see if i can learn something from your script. smiley
Logged

skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: August 01, 2008, 09:31:24 PM »

smiley 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:18 AM by skrommel » Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
lanux128
Global Moderator
*****
Posts: 6,087



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: August 01, 2008, 10:20:16 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. smiley
Logged

tomos
Charter Member
***
Posts: 8,369



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: August 02, 2008, 03:19:12 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 smiley)

Logged

Tom
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: August 02, 2008, 03:57:28 AM »

 ohmy 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
Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
lanux128
Global Moderator
*****
Posts: 6,087



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #8 on: August 02, 2008, 04:04:45 AM »

it's okay, Skrommel. let the name remain as it is, i'll change mine later since i haven't posted it yet. smiley
Logged

skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: August 02, 2008, 06:51:17 AM »

 smiley I've changed the name to Captain. Again, sorry lanux128.

Skrommel
Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
lanux128
Global Moderator
*****
Posts: 6,087



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #10 on: August 03, 2008, 02:32:19 AM »

nice play on the words, Caption -> Captain. btw, i've also posted mine as well. smiley
Logged

nogojoe
Charter Member
***
Posts: 136


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #11 on: August 03, 2008, 03:39:53 AM »

nice play on the words, Caption -> Captain. btw, i've also posted mine as well. smiley

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
« Last Edit: August 03, 2008, 03:52:41 AM by nogojoe » Logged

Often the most convincing people are those who have lost the plot so much they don't recognize the difference between fact and fantasy
PhilB66
Supporting Member
**
Posts: 1,510


View Profile Give some DonationCredits to this forum member
« Reply #12 on: August 03, 2008, 03:46:38 AM »

nice play on the words, Caption -> Captain. btw, i've also posted mine as well. smiley

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.
Logged
Armando
Charter Member
***
Posts: 2,674



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #13 on: September 15, 2008, 04:18:00 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.
Logged

"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
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #14 on: October 09, 2008, 02:29:51 AM »

 smiley I've just uploaded Captain v1.2.

Changes:

- Updates changing captions

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

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
Armando
Charter Member
***
Posts: 2,674



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #15 on: October 10, 2008, 10:38:49 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
Logged

"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
**
Posts: 2,397



View Profile Give some DonationCredits to this forum member
« Reply #16 on: November 01, 2008, 09:54:08 AM »

Hmmm, neither Captain nor CopyCap seem to handle Japanese text in captions on one of my machines.  Perhaps this is an AHK thing...
Logged
lanux128
Global Moderator
*****
Posts: 6,087



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #17 on: November 01, 2008, 11:47:08 AM »

AHK doesn't support Unicode internally though there are some workarounds in place currently, one of which is in this thread.
Logged

ewemoa
Honorary Member
**
Posts: 2,397



View Profile Give some DonationCredits to this forum member
« Reply #18 on: November 01, 2008, 10:38:25 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...
Logged
lanux128
Global Moderator
*****
Posts: 6,087



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #19 on: November 02, 2008, 07:47:59 PM »

yes, as i understand apparently Unicode support warrants something like a complete rewrite therefore the delay.. smiley
Logged

ewemoa
Honorary Member
**
Posts: 2,397



View Profile Give some DonationCredits to this forum member
« Reply #20 on: November 02, 2008, 09:31:52 PM »

Ewwwwwwwwww Sad
Logged
lanux128
Global Moderator
*****
Posts: 6,087



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #21 on: May 12, 2009, 12:13:15 AM »

a slight variation of this script can be found here, where there is a menu to open the folder of the current program.

Logged

CrawlerBrinx
Participant
*
Posts: 17

View Profile Give some DonationCredits to this forum member
« Reply #22 on: October 08, 2012, 06:36:04 AM »

It would be mega-awesome to be able to create rules (with regexp support, plox! cheesy) for auto caption changing.
Logged
Pages: [1]   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.043s | Server load: 0.13 ]