Skip to main content
10 events
when toggle format what by license comment
Jul 4, 2020 at 17:09 comment added TheTechRobo the Nerd For those of you who came for right-clicking in the terminal, I adapted the command so that it doesn't click the first entry in the menu: cliclick kd:ctrl c:+0,+0 ku:ctrl will just Control-click.
Mar 15, 2017 at 20:15 comment added user3439894 @rubik's sphere, Sorry I never saw your edit, the paragraph starting with "To elaborate on the context", until now however I stand by what I've already said. BTW That edit, made more then an hour after I answered the original question as originally written, changes the overall scope of the question where my original answer covered what you didn't know to what I'd consider to be a totally different question after the fact. So lets separate the issue with a new and separate question.
Mar 15, 2017 at 20:06 vote accept rubik's sphere
Mar 15, 2017 at 19:57 comment added user3439894 @rubik's sphere, Also note you may need to use the w:ms commands appropriately within the cliclick command line as necessary.
Mar 15, 2017 at 19:56 comment added user3439894 @rubik's sphere, I believe my answer as written addresses the real question asked, that being how to right-click with cliclick and this is not the place to debug what you're trying to do with it. I'd suggest starting another question while providing all info necessary to replicate any issue(s) you're having. That said, your cliclick command, as written, is doing exactly what it's supposed to be doing, even if the results are not right. Why are you even doing a right-click at the point you are as all it does is bring a the context menu. You need to do something else afterwards too.
Mar 15, 2017 at 19:27 comment added rubik's sphere Thank you for the detailed answer. I almost have the perfect script. I am using this script to highlight text and then right-click the text. Is there a way for the text to remain highlighted/selected after the right-click (just like it would normally)? This is my full code: do shell script "/usr/local/bin/cliclick dc:+0,+0 kd:ctrl c:+0,+0". My code un-selects the selected text when it right-clicks.
Mar 15, 2017 at 17:49 history edited user3439894 CC BY-SA 3.0
added 415 characters in body
Mar 15, 2017 at 15:39 history edited user3439894 CC BY-SA 3.0
added 190 characters in body
Mar 15, 2017 at 15:28 history edited user3439894 CC BY-SA 3.0
added 343 characters in body
Mar 15, 2017 at 15:07 history answered user3439894 CC BY-SA 3.0