Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag and Drop #131

Open
jjbauer15 opened this issue Nov 17, 2021 · 1 comment
Open

Drag and Drop #131

jjbauer15 opened this issue Nov 17, 2021 · 1 comment
Labels

Comments

@jjbauer15
Copy link

jjbauer15 commented Nov 17, 2021

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.

@BlueM BlueM added the question label Feb 7, 2022
@BlueM
Copy link
Owner

BlueM commented Feb 7, 2022

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants