Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • December 05, 2016, 04:31:49 AM
  • Proudly celebrating 10 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: New feature: hotkey to "auto-add" to previous clip  (Read 1383 times)

dcwul62

  • Supporting Member
  • Joined in 2013
  • **
  • default avatar
  • Posts: 293
    • View Profile
    • Donate to Member
New feature: hotkey to "auto-add" to previous clip
« on: October 31, 2014, 01:16:40 AM »

Up front, maybe it is already available, I don't know - haven't found it.

If not, then maybe it would be a new feature...

Hotkey  that "auto-adds" text to previous clip

How I do it now:
select text - Ctrl c
select other text - Ctrl c
select some more text - Ctrl c

open CHS
select the entries
click on merge + ok

it would show like:
this is 1st text
and this is the 2nd part
and this the 3rd

below each other
then I further need to adjust this to:

this is 1st text and this is the 2nd part and this the 3rd



What I would like to suggest
select text - Ctrl-C   (or SomeHotKey, a different one)
select other text - SomeHotKey
select some more text - SomeHotKey

--> in CHS it shows like: this is 1st text and this is the 2nd part and this the 3rd


paste!
the result is : this is 1st text and this is the 2nd part and this the 3rd

Example:
I capture a photo from a website
below the photo details are displayed, like long title, short title, place, names of people, when shot, photographer, bla bla

now I select
short title (ctrl-c)
place (SomeHotkey)
when shot (SomeHotkey)

resulting in: short title place when shot

this i can paste when naming the screenshot  (save as =>   paste)

again, maybe it is available...

thanks
-


select text - some-hotkey


lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: New feature: hotkey to "auto-add" to previous clip
« Reply #1 on: October 31, 2014, 07:56:12 PM »
if you don't mind an interim solution, the following ahk script can do what you want.

use ctrl+alt+c to append text into clipboard, comes in handy when collating info from different sources.

Code: Autohotkey [Select]
  1. ^!c::
  2. ; Source: http://www.biancolo.com/
  3. ; Appends selection to clipboard
  4. bak = %clipboard%
  5. clipboard = ; Empty the clipboard
  6. Send, ^c
  7. {
  8.     TrayTip, MyAHK, The attempt to copy text onto the clipboard failed.,1
  9.     SetTimer, RemoveTrayTip, 5000
  10.     Return
  11. }
  12. clipboard = %bak%`r`n%clipboard%
  13. Return
  14.  
  15. RemoveTrayTip:
  16. SetTimer, RemoveTrayTip, Off
  17. Return

dcwul62

  • Supporting Member
  • Joined in 2013
  • **
  • default avatar
  • Posts: 293
    • View Profile
    • Donate to Member
Re: New feature: hotkey to "auto-add" to previous clip
« Reply #2 on: November 01, 2014, 03:18:54 AM »
Many thanks indeed!
However, I am hardly familiar with .ahk scripts and stuff.
wouldn't know how to deal with the above.

1. copy paste into an editor
2. save as (e.g.) CopyAppend.ahk

but... then what?

like,
- where to put?
- how to activate when launching portable.. CHS?
- how to de-activate?

thanks!

-

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: New feature: hotkey to "auto-add" to previous clip
« Reply #3 on: November 01, 2014, 04:25:05 AM »
1. copy paste into an editor
2. save as (e.g.) CopyAppend.ahk

but... then what?

like,
- where to put?
- how to activate when launching portable.. CHS?
- how to de-activate?

if you don't have Autohotkey (AHK) installed, then you can download and install it first.

the snippet i posted was meant to be part of a larger script but since then i have made some changes to suit your needs.

- where to put?
you can put it in the same folder as the exe file of CHS.

- how to activate when launching portable.. CHS?
when you launch the script, it will check and start CHS for you.

- how to de-activate?
press Ctrl+Alt+End to pause the script (toggles on/off). if you want to exit the script, you can right-click on its icon in the system tray and choose 'Exit'.


hope this helps..