Jeff Mason
4 discussion posts
Is it possible (via a macro) to tell ClipboardFusion which item to select by specifying an index?
I'm hoping to replicate some functionality in the clipboard manager app I've been using previously, where you could select an item in the clipboard history and then each time you clicked paste it would move to the next item in the history.
The idea being that you'd copy a number of values from a source document (using separate copy commands to create separate records in the clipboard history), eg
Joe Bloggs
123 My Street
My Town
My Country
And then, when invoking the macro using a hotkey, the first invocation would paste 'Joe Bloggs' and change the selected index to current index + 1. The next invocation would paste '123 My Street', the next would paste 'My Town', etc.
Jeff Mason
4 discussion posts
Any idea when BFS.Window.IsVisible might become available to Clipboard Fusion?
I'm close to getting your scripts to work as a single macro (and thus only one hotkey) by trying to detect if the Clipboard Manager is popped up.
The idea being that in my use case I always initiate the macro from the manager so if I know that's true (ie it's popped up) then the macro should set up the settings index before pasting. If it detects that the manager is not popped up, then it simply increments the index and pastes, etc.
Unfortunately IsVisible is not available yet, and GetFocusedWindow seems to ignore Clipboard Manager (quite reasonably, since 99% of macros probably want to know what the focused window was before the Clipboard Manager popped up!).
Jeff Mason
4 discussion posts
Thanks Thomas. Your code works perfectly!
I liked your idea of combining the Macros into one function so much I made a version as well! I attached the code to this post if you, or anyone else is interested.
Thanks!
Dmiitry
71 discussion posts
Great idea @Jeff Mason!
Thanks for elegant implementation, @Thomas Malloch - very useful.
To use "Incrementing PowerPaste" macro effectively, I need nicely arranged history: all items I intend to paste in desired order should follow strictly one after another in the history. Should we have a way to move items in history so that to re-order them? Sure, I can be disciplined and pay attention to how I copy things in the first place, but hey... we are not perfect.
Maybe allow users to re-arrange items in the History by drag-and-drop, or some other UI operation?