Hello, I'm just starting to put this macro together but I would like the first 2 actions only to occur if the cursor is not at the start of a unit of text. I've looked at the "If Then Else" action but I cannot work out what condition I should test for.
What I am trying to do is to be able to position the cursor anywhere in a unit of text, and press a key and highlight and copy the entire unit of text to the clipboard. The problem is that if the cursor is at the start of the text, then it jumps back to the previous unit of text.
It looks like what I need is to generate a double-click mouse action at the current keyboard-cursor position. I'm looking at the "Move or Click Mouse" action but there doesn't seem to be a way of positioning a mouse click by the current text cursor position unless I'm missing something obvious!
I had to put some pauses in because otherwise, it messed up the macOS desktop settings. I'm using it in Visual Studio Insiders though I guess it could work in other apps. It's tied to ⌘F13. There's also a Smart Paste tied to ⌘F14 which is the same apart from a ⌘V at the end.
It's designed to replicate the Smart Copy and Smart Paste facility of the legendary CodeRush keyboard enhancement tool for Delphi that I used to use many years ago. The hotkeys are chosen because my muscle memory still remembers the old Windows Ctrl-Insert and Shift-Insert keystrokes, and the ones here are close enough!
If one of the above posts solves your problem/question as originally stated, please check the "Solved" checkbox (click for details) at the bottom of that post.
Otherwise, please post your remaining questions/issues about this problem.
If you have other questions, please start a new topic.