# Auto mouse cursor move and click node?

**URL:** <https://discourse.nodered.org/t/auto-mouse-cursor-move-and-click-node/30043>\
**Category:** General\
**Created:** [14 July 2020 09:02 UTC](https://discourse.nodered.org/t/auto-mouse-cursor-move-and-click-node/30043 "2020-07-14T09:02:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jude.Robise](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jude.robise/32/13970_2.png) [@Jude.Robise](https://discourse.nodered.org/u/Jude.Robise)\
**Post date:** [14 July 2020 09:02 UTC](https://discourse.nodered.org/t/auto-mouse-cursor-move-and-click-node/30043/1 "2020-07-14T09:02:24Z")

</div>

Hey guys,

Is there any node that can **move mouse cursor by giving coordinates x and y**? 😃  
I googled but did not get any possible nodes yet.

Thanks  
-Jude

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 July 2020 09:18 UTC](https://discourse.nodered.org/t/auto-mouse-cursor-move-and-click-node/30043/2 "2020-07-14T09:18:34Z")

</div>

I don't know if it is even possible for a web page to move the mouse cursor for you, I think it would be rather confusing if the cursor moved about of its own accord.

In the title you said _and_ click node. If what you are trying to do is to simulate the clicking of a button then you can inject the same message the button would send so that it has the same effect as clicking it.

---

<div class="post-metadata">

**Author:** ![Nxito](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nxito/32/88293_2.png) [@Nxito](https://discourse.nodered.org/u/Nxito)\
**Post date:** [14 July 2020 13:46 UTC](https://discourse.nodered.org/t/auto-mouse-cursor-move-and-click-node/30043/3 "2020-07-14T13:46:02Z")

</div>

Looking for how to do keyboard macros, I found this. it is a nodeJS library but I think it can be used well on node-red:

> **[octalmage/robotjs](https://github.com/octalmage/robotjs)**
>
> Node.js Desktop Automation. . Contribute to octalmage/robotjs development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 September 2020 13:46 UTC](https://discourse.nodered.org/t/auto-mouse-cursor-move-and-click-node/30043/4 "2020-09-12T13:46:12Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
