# How to automatically click a certain button on the computer window?

**URL:** https://discourse.julialang.org/t/how-to-automatically-click-a-certain-button-on-the-computer-window/130192
**Category:** General Usage
**Tags:** question, package, gui
**Created:** [June 25, 2025, 6:24am UTC](https://discourse.julialang.org/t/how-to-automatically-click-a-certain-button-on-the-computer-window/130192 "2025-06-25T06:24:30Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [June 25, 2025, 6:24am UTC](https://discourse.julialang.org/t/how-to-automatically-click-a-certain-button-on-the-computer-window/130192/1 "2025-06-25T06:24:30Z")

</div>

Hello everyone! I want to click a certain button in a certain window on the computer screen at some future time point. I think it needs to first identify the position of the button based on its title, then click it at the set time, and perhaps also capture and save the interface picture after the click.

Is there an easy way to achieve this using Julia? Thanks!

---

<div class="post-metadata">

### Author: ![bjarthur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bjarthur/32/9638_2.png) [@bjarthur](https://discourse.julialang.org/u/bjarthur)
#### Post date: [June 25, 2025, 11:33am UTC](https://discourse.julialang.org/t/how-to-automatically-click-a-certain-button-on-the-computer-window/130192/2 "2025-06-25T11:33:00Z")

</div>

what plotting package are you using? a MWE would help.

---

<div class="post-metadata">

### Author: ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)
#### Post date: [June 25, 2025, 6:47pm UTC](https://discourse.julialang.org/t/how-to-automatically-click-a-certain-button-on-the-computer-window/130192/3 "2025-06-25T18:47:35Z")

</div>

There are tools for this (I forgot the name, but I used them years ago), but not specific to Julia…

---

<div class="post-metadata">

### Author: ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)
#### Post date: [June 25, 2025, 7:13pm UTC](https://discourse.julialang.org/t/how-to-automatically-click-a-certain-button-on-the-computer-window/130192/4 "2025-06-25T19:13:15Z")

</div>

> [@sylvaticus](#):
>
> There are tools for this (I forgot the name, but I used them years ago), but not specific to Julia

- Xdotool for X11/Xorg

- Autohotkey for Windows

---

<div class="post-metadata">

### Author: ![ArchieCall](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/archiecall/32/206_2.png) [@ArchieCall](https://discourse.julialang.org/u/ArchieCall)
#### Post date: [June 25, 2025, 7:18pm UTC](https://discourse.julialang.org/t/how-to-automatically-click-a-certain-button-on-the-computer-window/130192/5 "2025-06-25T19:18:56Z")

</div>

I also used Autohotkey on Windows some time back. I think I was using C#, or Ruby to call Autohotkey.

---

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [June 30, 2025, 9:23am UTC](https://discourse.julialang.org/t/how-to-automatically-click-a-certain-button-on-the-computer-window/130192/7 "2025-06-30T09:23:43Z")

</div>

> [@nsajko](#):
>
> - Xdotool for X11/Xorg
> - Autohotkey for Windows

- Microsoft Power Automate on Win11

Finally I used this and reached my goal. Thank you and everybody here! 🤝

---

<div class="post-metadata">

### Author: ![Alfredo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alfredo/32/218064_2.png) [@Alfredo](https://discourse.julialang.org/u/Alfredo)
#### Post date: [August 12, 2025, 6:42am UTC](https://discourse.julialang.org/t/how-to-automatically-click-a-certain-button-on-the-computer-window/130192/8 "2025-08-12T06:42:01Z")

</div>

Based on my experience, Xdotool works on Linux, while AutoHotkey or Power Automate work on Windows for this purpose.
