Restore mouse position when closing clipboard manager

I have a trackpad gesture that opens and closes the clipboard manager:

Custom Tap Sequence: First Touch with 4 Fingers then Release 3

This leaves my pointer finger on the trackpad ready to interact with the clipboard manager.

GOAL:

I would like my cursor to move to the first item in the clipboard then, after using the clipboard I would like to restore the cursor to its original position.

CURRENT SITUATION:

I currently have it set up to move my cursor to the first item when I use my Custom Tap Sequence - one issue here is if I use the Custom Tap Sequence to close the clipboard, it moves the cursor again to the position as it is using the Custom Tap Sequence as the trigger rather than the “Opening” of the clipboard as the trigger.

POSSIBLE SOLUTION:

If there was a way to use the “Opening” of the clipboard as the trigger, I would hope to use this to save the original cursor position and move the cursor to the first item in the clipboard.

On pasting or closing the window, I would want the move the cursor back to its original position but I don’t know how I would trigger that.

This second part might require “Pasting from clipboard manager” to also be it’s own trigger, but I assume then I would also need to be able to load in the previous “saved cursor location”. I am not sure that this is possible currently?

Best,

Kieran

I have just discovered the feature of making the pasteboard appear at the cursor’s location which is the opposite solution but it does streamline the cursor movement.

I would love it if there was a way to do what I suggested above because I would like to have the pasteboard always appear in the top right.

Any suggestions appreciated!

Perhaps I don't quite understand what you want to achieve :slight_smile:

Your gesture opens the clipboard manager in the upper right corner. Then the mouse is moved there (action: Move mouse to).

If you want to move the mouse back to its old position afterwards, you can insert the action “save current mouse position” at the beginning of the action sequence. And when the clipboard manager closes, “restore mouse position”.

Thanks Frank, your comments have lead me back around to find the solution:

I believe there is a bug in the trigger: Specific App Did Close / Hide Window

I had previously tried this trigger and it didn’t seem to do anything - it turns out that I was just too quick to dismiss it.

It is the perfect trigger and works flawlessly but ONLY AFTER the first time when it doesn’t seem to trigger anything!

I haven’t finished building my Automation to work as completely I want, so after I have done that and done some testing I will post a proper bug report for the trigger: Specific App Did Close / Hide Window - eg. I want to try a system reset to see if the trigger works straight away or again needs 2 triggers before it starts working.

PS: I assumed that source of this issue was because the “focused/active” app doesn’t visibly change in the system menubar to BetterTouchTool when you “Show/Hide Clipboard / Pasteboard History”.

I started to think that it wasn’t treating the Clipboard Manager as part of BetterTouchTool.

This was compounded because the trigger: Specific App Did Deactivated didn’t work either so I assumed that I needed BTT to have a unique way of dealing with the Clipboard Manager as I noted that there is a trigger Clipboard Manager / Java Script Transformer so guessed my solution might be in Java Script but I have never learned Java so came here for guidance!

Thanks again for your clear response as it helped restore confidence in my original logic!