mardi 20 juin 2017

Node.js / Robotjs mouseToggle down does not hold and drag

I have the following code:

        robot.moveMouseSmooth(x, y);
        robot.mouseToggle("down");
        robot.dragMouse(815, 344);
        robot.mouseToggle("up");

It seems that my robot.mouseToggle("down"); then robot.dragMouse(815, 344); does not work. What happens is that the pointer goes to the position, the i think i can see it wants to move item but then it goes to (815, 344). All movement works up to this point. Is there a way to mouseToggleDown and moveMouseSmooth in one go?

Any suggestions why I does not want to "drag" the item? My canvas uses GoJS and I am using Chrome as a browser.

Aucun commentaire:

Enregistrer un commentaire