I copy a lot of information from 1 program to another, and the program I'm targeting only accepts it in a certain way. So I want to reformat it before pasting, which would be for personal convenience.
Something related would be a trimming feature. For example copying cells from excel into notepad, there is always an enter at the end. I wouldn't know when to decide the clipboard should be trimmed or not though.
Here's the code I use to detect and if present trim the "Enter" at the end of Excel cells. Enter is really Carriage return and Linefeed, old typewriter jargon. 2 characters 0D0A in Hex and `n and `r in AHK, if `n is present `r normally is too hence:
IfInString, Query, `n ;Check if the string has a new line character on it StringTrimRight, Query, Query, 2 ;if so strip it and the carriage return character too
PS. I've switched to using COM routines for extracting data or otherwise manipulating Excel, you may want to check it out, it's very sleek.
Excellent app Avi, very useful. I used and modified a previous AHK utility called ClipStep and continually had issues such as Microsoft Excel crashing and recovering because of the Office clipboard conflicting with ClipStep. That problem is gone now, thanks again!
1. I LOVE this clipboard manager! It is obvious you've put a lot of thought into its usability! 2. The ONLY feature i'd like to see improved is a faster way to paste history items. The search is GREAT but once i find what i wanted to paste, i have to rightclick->copy to clipjump then select the application i wanted to paste in and paste. Any chance of a shortcut key to copy the clip to clipjump and then close the history window or something like that?
========== how about options: copy or not... images copy or not... paths copy or not... list of files copyed ... [File/Folder]
i use to need only text in clipboard
========== about history: when i erase an img from ctrl + x + x it doesn't dissapear from histroy window
by the way... clear history button only erase the clipboards from the window but not from "history" should be a button or option "clear clipboards in this window"?
========== about search option:
when you type something and find it it could be highlight the character(s) found? and auto select the first find? and with an Enter bring me the item to clipboard? so y can... one of two things hide the window and... automatically paste to the previous window or just hide the window so... i can paste the clipboard item to where i want
one more thing instead of type something how about when i press the "down" key (now it only happens with Tab key) change focus to the history items area so i can choose the one i need and also with an enter hide the window and the item where i pressed Enter is now in clipboard and not send me a window to edit to edit the clipboard that could be with a "ctrl + enter"
I don't think the 'copy or not' datatype for each data-type is a need as it complicates the program and I am keen to keep it as simple as it is. Moreover, most of the users will want those features.
I dont understand what 'window' means here .. Clear history does work fine. If you are looking to delete Clips too, use Ctrl + x + x + x
============= Search
Good suggestions . I would consider them now after working out off the basic features of the program.
Not for this version as cj can face issues when not ran as admin at times. I will remove the Error box with an option to allow run as non-admin in the next version.
Nice script! Very convenient.
ReplyDeleteI would like to make some changes for special behavior when coping specific content, but I can't de-compile the executable.
Are you planning on releasing the source?
Hey, Rob
DeleteI will release the source with the next release.
Stay Tuned!
But, can I know what the change will you make. Is it only for your personal convenience or a publicly - productive one ?
Hello Avi,
DeleteGreat, I see it wasn't a 1th of April joke :-)
I copy a lot of information from 1 program to another, and the program I'm targeting only accepts it in a certain way. So I want to reformat it before pasting, which would be for personal convenience.
Something related would be a trimming feature.
For example copying cells from excel into notepad, there is always an enter at the end.
I wouldn't know when to decide the clipboard should be trimmed or not though.
Hi Rob,
DeleteHere's the code I use to detect and if present trim the "Enter" at the end of Excel cells.
Enter is really Carriage return and Linefeed, old typewriter jargon. 2 characters 0D0A in Hex and `n and `r in AHK, if `n is present `r normally is too hence:
IfInString, Query, `n ;Check if the string has a new line character on it
StringTrimRight, Query, Query, 2 ;if so strip it and the carriage return character too
PS.
I've switched to using COM routines for extracting data or otherwise manipulating Excel, you may want to check it out, it's very sleek.
--
Luke
This comment has been removed by the author.
DeleteThis comment has been removed by the author.
DeleteExcel People, please wait for the next release.
DeleteThat should fix the linefeed and duplicates problem
version 3.0 fixes it all.
DeleteMake sure you see Notes on Usage when facing problem.
Excellent app Avi, very useful. I used and modified a previous AHK utility called ClipStep and continually had issues such as Microsoft Excel crashing and recovering because of the Office clipboard conflicting with ClipStep. That problem is gone now, thanks again!
ReplyDelete--
Luke V.
:-)
Delete1. I LOVE this clipboard manager! It is obvious you've put a lot of thought into its usability!
ReplyDelete2. The ONLY feature i'd like to see improved is a faster way to paste history items. The search is GREAT but once i find what i wanted to paste, i have to rightclick->copy to clipjump then select the application i wanted to paste in and paste. Any chance of a shortcut key to copy the clip to clipjump and then close the history window or something like that?
first of all thanks for this utility
ReplyDelete========== how about options:
copy or not... images
copy or not... paths
copy or not... list of files copyed ... [File/Folder]
i use to need only text in clipboard
========== about history:
when i erase an img from ctrl + x + x
it doesn't dissapear from histroy window
by the way...
clear history button
only erase the clipboards from the window
but not from "history"
should be a button or option
"clear clipboards in this window"?
========== about search option:
when you type something and find it
it could be highlight the character(s) found?
and auto select the first find?
and with an Enter bring me the item to clipboard?
so y can... one of two things
hide the window and...
automatically paste to the previous window
or just hide the window so...
i can paste the clipboard item to where i want
one more thing
instead of type something
how about when i press the "down" key
(now it only happens with Tab key)
change focus to the history items area
so i can choose the one i need
and also with an enter
hide the window
and the item where i pressed Enter
is now in clipboard
and not send me a window to edit
to edit the clipboard
that could be with a "ctrl + enter"
thanks in advance
---
from Mexico: AMS
Thanks for your interest.
DeleteI don't think the 'copy or not' datatype for each data-type is a need as it complicates the program and I am keen to keep it as simple as it is. Moreover, most of the users will want those features.
I dont understand what 'window' means here .. Clear history does work fine. If you are looking to delete Clips too, use Ctrl + x + x + x
============= Search
Good suggestions . I would consider them now after working out off the basic features of the program.
Hi,
ReplyDeletehow about chance the "Win + C"
with another convination
for launch the history window
and in the .ini file set:
Run At Start Up = 0 or 1
choosen
---
from Mexico: AMS
About a customizable shortcut, I would say that's a frequent suggestion and I will think on that.
Delete>> About Run at Start up, you just disable it from the tray menu and it will not disturb you again.
I get an error that cj needs to run as admin. Any way to run without admin access?
ReplyDeleteNot for this version as cj can face issues when not ran as admin at times. I will remove the Error box with an option to allow run as non-admin in the next version.
DeleteThe error is fixed in v7.2
Delete