aviaryan / Clipjump

:clipboard: Clipboard Manager for Windows, built in AutoHotkey
http://clipjump.sourceforge.net/
381 stars 61 forks source link

Is there any API to move step Forward or Backward? #132

Open jane00 opened 7 years ago

jane00 commented 7 years ago

I means that change the current clip number in the same channel. Thanks!

aviaryan commented 7 years ago

I think TEMPSAVE variable has something to do with it. Incrementing or decrementing it should work.

v := clipjumpInstance.getVar("TEMPSAVE")
clipjumpInstance.setVar("TEMPSAVE", v+1)   ; or v-1, not sure
leninkumark commented 7 years ago

I have a similar request. For Eg. I have 5 items in my clip board. After pasting the first item by Ctrl+V, I want the next item in the clipboard (i.e) Item 2 to get pasted automatically when I press ctrl+v. Next time if I press ctrl+V, the third item should get pasted & so on. Is there any way to achieve this?

jane00 commented 7 years ago
jane00 commented 7 years ago

I've tridv := clipjumpInstance.getVar("TEMPSAVE") clipjumpInstance.setVar("TEMPSAVE", v+1) , but it dosn't work;

So, I modified the "API.ahk" file , add ` stepBack(){

    TEMPSAVE +=1
}`

And, then add a file plugin called "paste_current_And_move_Back.ahk". The content 'bind = Win+v plugin_paste_current_And_move_Back(){ API.stepBack() API.paste() }'

It works fine. @leninkumark

leninkumark commented 5 years ago

It works like a charm. Thank you very very much! You are my hero!!