cliclick icon indicating copy to clipboard operation
cliclick copied to clipboard

Drag and Drop

Open jjbauer15 opened this issue 3 years ago • 1 comments

Hello!

Particularly in the context of Google Chrome, the drag-and-drop feature doesn't seem to be working right. I have tested it with taking a screenshot, for example, which does work. However, when it comes to dragging a recently-downloaded file and dropping it to the drag-and-drop import section of a Google Sheet, it doesn't seem to be dragging the file.

Even further, in the AppleScipt that I have this in, I tested having Cmd+Shift+4 keyed in before the drag and drop, and a screenshot does successfully get taken.

Here is my code, for reference:

cliclick m:112,1026 w:50 dd:112,1026 w:50 du:840,604"

I will say: I have tried it with a number of different variations, including adjusting wait time and including a dm statement between dd and du.

jjbauer15 avatar Nov 17 '21 17:11 jjbauer15

I’m sorry, but problems like these are impossible for me to give advice for. If something like this doesn’t work as expected, it’s often an issue of timing or an application being in the background – but this is not necessarily reproducible on another Mac. Therefore, even if I had an answer to the question, it wouldn’t necessarily work on your Mac, too.

Having said that, things to try are: experimenting with timing/waiting (which you have already done), experimenting wih foreground / background applications, using -e for a more “natural” series of events and also splitting one cliclick invocation into several invocations (here, for instance before the dd).

BlueM avatar Feb 07 '22 20:02 BlueM