[Looking for Maintainers/Successors] Clipjump : The Ultimate Clipboard Manager

Post your working scripts, libraries and tools
User avatar
Avi
Posts: 193
Joined: 30 Sep 2013, 09:51
Facebook: avi.aryan.ap
Google: +AviAryan
GitHub: aviaryan
Location: India
Contact:

Re: Clipjump : The Ultimate Clipboard Manager [v12.5]

25 Dec 2016, 23:23

DaveT1 wrote:Hi Avi,

ClipJump continues to be very useful to me....I've just started using the api, but have the following Q on this code:

Code: Select all

#Include publicAPI.ahk
cj := new Clipjump()
cj.paste(1, 1) ; From ClipJump paste entry 1 from channel 1
temp1 := cj.getClipAt(0, 1, 1)
temp2 := cj.version
temp3 := cj.getChStrength(0)
MsgBox, %temp1%, %temp2%, %temp3%
The paste command works. And when I show the msgbox, I see entries for temp1 and temp2. But not for temp3 - it appears to be blank. I have a second channel (ie., channel 1), and when I try that I also see nothing returned.

I'm sure I've done something mindless here, so would appreciate a pointer as to where I've gone wrong.

Many thanks.
I think the problem is with MsgBox here. The syntax is wrong. The commas there are following the full syntax of MsgBox.
Try MsgBox % temp1 . temp2 . temp3
Writes at Dev Letters

Clipjump Clipboard Manager : More Scripts (updated 2019)

Image
thebunnyrules
Posts: 18
Joined: 29 Mar 2015, 04:31

Re: Clipjump : The Ultimate Clipboard Manager [v12.5]

22 Jan 2017, 22:15

I love the idea but I'm so used to leaving my fingers on the Ctrl key when I cut and paste that I'm always wondering what it's not pasting until I remember.... :) I guess it's not for me...
User avatar
Avi
Posts: 193
Joined: 30 Sep 2013, 09:51
Facebook: avi.aryan.ap
Google: +AviAryan
GitHub: aviaryan
Location: India
Contact:

[Looking for Maintainers/Successors] Clipjump

05 Feb 2017, 23:10

Hey everyone.
It must have been obvious for the past few months but now it's official. I am retiring from developing Clipjump. It was great working on the project, it really was a life-time experience. I thank everyone for their support, feedback and patience with Clipjump.
I hope someone will be willing to pick up this project and continue the development of the program we all love and use.
I have created a brief post on Clipjump's GitHub repo with the details. (https://github.com/aviaryan/Clipjump/issues/136)
If you have any problems or suggestions, please post it here or on GitHub and I will try to resolve it as soon as possible.
Thank you.
Writes at Dev Letters

Clipjump Clipboard Manager : More Scripts (updated 2019)

Image
hotkeyguy
Posts: 147
Joined: 11 Oct 2014, 12:22

Re: [Looking for Maintainers/Successors] Clipjump : The Ultimate Clipboard Manager

24 Feb 2017, 12:23

Hello Avi,

my problem below is really a show-stopper for me. I asked already 22 Jul 2016, 17:41. Any hints are highly appreciated before you retire!


Is there an event after something is copied to the clipboard available? Or a callback function?
The background of that question is that I have an app where sometimes copying to the clipboard doesn't work - that problem isn't related to Clipjump in any way. It's an problem of the used GUI text control. Because the clipboard is then empty, I could repeat copying with a certain delay several times until a timeout. Therefore I need that event/callback. Any hints or other suggestions?


Many thanks and greetings
hotkeyguy
User avatar
Avi
Posts: 193
Joined: 30 Sep 2013, 09:51
Facebook: avi.aryan.ap
Google: +AviAryan
GitHub: aviaryan
Location: India
Contact:

Re: [Looking for Maintainers/Successors] Clipjump : The Ultimate Clipboard Manager

24 Feb 2017, 13:06

hotkeyguy wrote:Hello Avi,

my problem below is really a show-stopper for me. I asked already 22 Jul 2016, 17:41. Any hints are highly appreciated before you retire!


Is there an event after something is copied to the clipboard available? Or a callback function?
The background of that question is that I have an app where sometimes copying to the clipboard doesn't work - that problem isn't related to Clipjump in any way. It's an problem of the used GUI text control. Because the clipboard is then empty, I could repeat copying with a certain delay several times until a timeout. Therefore I need that event/callback. Any hints or other suggestions?


Many thanks and greetings
hotkeyguy
Hey, I don't think we have a callback/listener for the clipboard updated event right now. I feel you will have to change the codebase to get this behavior.
Clipjump.ahk has the onClipboardChange label, you can change it and add your event trigger call there.
You can define your custom routine for the event trigger in the Clipjump.ahk or any other lib file or as a custom plugin (use API.runPlugin).

Hope this helps.
Writes at Dev Letters

Clipjump Clipboard Manager : More Scripts (updated 2019)

Image
DaveT1
Posts: 67
Joined: 07 Oct 2014, 11:23

Re: Clipjump : The Ultimate Clipboard Manager [v12.5]

02 Mar 2017, 05:45

Hi Avi,

devasted to hear that you're stopping work on this project, but many thanks for bringing us this wonderful tool :D . I hope someone comes along soon to take it on. I'm a bit surprised that no one has yet!

In case you're still monitoring this board, and that you've not yet fully retired, here's a belated follow up to your reply below: I don't think that it is the formatting - that message box will work fine. But I've been retrying this for getChStrength only, and still no luck, ie., the message box is still blank:

Code: Select all

temp4 := cj.runFunction("getChStrength(0)")
MsgBox, %temp4%
In doing some very rudimentary debugging, I notice that in publicAPI.ahk, there is a line: rFuncs := "|getClipAt|getClipLoc|getVar|runFunction|". I can get the first 3 listed there to work just fine (using the same approach as the code snippet above), but haven't tried the 4th. But getChStrength is not in that list, and, I think, it makes the If statement on line 55 of publicAPI.ahk fail.

I have to say that this is all conjecture and inference - I simply don't have the skills to know if my thinking has merit, or is way off!

I wish you all the luck in the future endeavours.
Avi wrote:
DaveT1 wrote:Hi Avi,

ClipJump continues to be very useful to me....I've just started using the api, but have the following Q on this code:

Code: Select all

#Include publicAPI.ahk
cj := new Clipjump()
cj.paste(1, 1) ; From ClipJump paste entry 1 from channel 1
temp1 := cj.getClipAt(0, 1, 1)
temp2 := cj.version
temp3 := cj.getChStrength(0)
MsgBox, %temp1%, %temp2%, %temp3%
The paste command works. And when I show the msgbox, I see entries for temp1 and temp2. But not for temp3 - it appears to be blank. I have a second channel (ie., channel 1), and when I try that I also see nothing returned.

I'm sure I've done something mindless here, so would appreciate a pointer as to where I've gone wrong.

Many thanks.
I think the problem is with MsgBox here. The syntax is wrong. The commas there are following the full syntax of MsgBox.
Try MsgBox % temp1 . temp2 . temp3
User avatar
Avi
Posts: 193
Joined: 30 Sep 2013, 09:51
Facebook: avi.aryan.ap
Google: +AviAryan
GitHub: aviaryan
Location: India
Contact:

Re: [Looking for Maintainers/Successors] Clipjump : The Ultimate Clipboard Manager

02 Mar 2017, 06:07

You need to access getChStrength as cj.getChStrength(channel) . http://clipjump.sourceforge.net/help.htm

Code: Select all

temp4 := cj.getChStrength(0)
MsgBox, %temp4%
Writes at Dev Letters

Clipjump Clipboard Manager : More Scripts (updated 2019)

Image
DaveT1
Posts: 67
Joined: 07 Oct 2014, 11:23

Re: [Looking for Maintainers/Successors] Clipjump : The Ultimate Clipboard Manager

02 Mar 2017, 06:36

Hi Avi,

Nice to see you're still around :) :) .

That still doesn't work. That was my problem in the original post. I simply see a completely blank message box. Hence I tried to runFunction to see if that would sort it. I've just re-worked it to go back to the original issue:

Code: Select all

;~ temp4 := cj.getClipAt(0, 3, 1)
;~ temp4 := cj.getClipLoc(0, 1)
;~ temp4 := cj.getVar("CN.NG")
temp4 := cj.getChStrength(0)
;~ temp4 := cj.runFunction("getChStrength(0)")
MsgBox, %temp4%
and I still see a blank message box. When I use any of the other three on the lines above (used one at a time, obviously), I get a message box which displays exactly what I would expect.

So I'm really a little stumped here. I've read and re-read the documentation on the API, and it doesn't seem to suggest doing anything different to what I've tried :?. Is it just coincidence that the three api functions which work are all listed in rFuncs := "|getClipAt|getClipLoc|getVar|runFunction|" in the publicAPI.ahk? Or does the absence of getChStrength from rFuncs mean that getChStrength will never work?

Very many thanks for your continued involvement (for now!).
Avi wrote:You need to access getChStrength as cj.getChStrength(channel) . http://clipjump.sourceforge.net/help.htm

Code: Select all

temp4 := cj.getChStrength(0)
MsgBox, %temp4%
User avatar
Avi
Posts: 193
Joined: 30 Sep 2013, 09:51
Facebook: avi.aryan.ap
Google: +AviAryan
GitHub: aviaryan
Location: India
Contact:

Re: [Looking for Maintainers/Successors] Clipjump : The Ultimate Clipboard Manager

02 Mar 2017, 09:25

Hey, sorry for not understanding you earlier.
Yes I think that the absence of getChStrength from rFuncs := "|getClipAt|getClipLoc|getVar|runFunction|" could be a reason that is not working.
Just make that line as rFuncs := "|getClipAt|getClipLoc|getVar|runFunction|getChStrength|" and maybe it will work.
Writes at Dev Letters

Clipjump Clipboard Manager : More Scripts (updated 2019)

Image
DaveT1
Posts: 67
Joined: 07 Oct 2014, 11:23

Re: [Looking for Maintainers/Successors] Clipjump : The Ultimate Clipboard Manager

03 Mar 2017, 03:49

Hi Avi,

I'm really grateful for your continued support on this one - needless to say it's VERY much appreciated.

I had already tried adding getChStrength to the rFunc list, but with no luck. So I tried again, a little more systematically, after you also suggested it. This is what I've figured so far:

If the api function called (eg., cj.getClipAt(0, 3, 1)) is in rFuncs := "|getClipAt|getClipLoc|getVar|runFunction| then "C:\Users\dave\AppData\Local\Temp\cjcb.txt" is created.

If the function called (eg., cj.getChStrength(0)) is not in rFuncs := "|getClipAt|getClipLoc|getVar|runFunction| then "C:\Users\dave\AppData\Local\Temp\cjcb.txt" is not created.

If I add, eg., getChStrength into rFunc (ie., so that I now have rFuncs := "|getClipAt|getClipLoc|getVar|runFunction|getChStrength|, and try to run getChStrength, then "C:\Users\dave\AppData\Local\Temp\cjcb.txt" is also not created.

When "C:\Users\dave\AppData\Local\Temp\cjcb.txt" is not present then

Code: Select all

Clipjump_wait4file(){
	while !FileExist(A_temp "\cjcb.txt")
		sleep 15
}
seems to be waiting indefinitely. I'm assuming that Clipjump_wait4file() is always expecting "C:\Users\dave\AppData\Local\Temp\cjcb.txt" to be created, and is just waiting until is appears?

"C:\Users\dave\AppData\Local\Temp\cjcb.txt" seems to be created by SendMessage, 0x4a, 0, &CopyDataStruct,, %TargetScriptTitle%. I really can't figure what this bit of code is doing, and therefore why it sometimes creates "C:\Users\dave\AppData\Local\Temp\cjcb.txt", and sometimes doesn't.

I'm also not sure if this is a symptom or a cause of the problem! Any pointers would, as ever, be gratefully received.
User avatar
Avi
Posts: 193
Joined: 30 Sep 2013, 09:51
Facebook: avi.aryan.ap
Google: +AviAryan
GitHub: aviaryan
Location: India
Contact:

Re: [Looking for Maintainers/Successors] Clipjump : The Ultimate Clipboard Manager

03 Mar 2017, 04:02

Hi Dave,
Apparently rFuncs is also defined in the API.ahk file (ohh bad design). https://github.com/aviaryan/Clipjump/bl ... PI.ahk#L10
Add getChStrength there and it should work. (i.e. getChStrength should be added to both rFuncs)
Writes at Dev Letters

Clipjump Clipboard Manager : More Scripts (updated 2019)

Image
DaveT1
Posts: 67
Joined: 07 Oct 2014, 11:23

Re: [Looking for Maintainers/Successors] Clipjump : The Ultimate Clipboard Manager

03 Mar 2017, 04:06

Oh, you're the man, you're the man :D :D :D . Let me try and I will report back.
Crashm87
Posts: 48
Joined: 25 Jul 2016, 13:12

Re: [Looking for Maintainers/Successors] Clipjump : The Ultimate Clipboard Manager

11 Apr 2017, 10:02

Hello everyone,

I've noticed something weird lately when using ClipJump.
When I try and copy text from a PDF file (Abode Reader DC), it won't transfer to Clipjump, it doesn't copy at all. Today I tried CNTRL+, I pressed it 10 times and finally it copied it to the clipjump. Next try, worked on the first try. Then next number, 6 Control+c and it copied.

Any ideas?

Return to “Scripts and Functions”

Who is online

Users browsing this forum: wineguy and 50 guests