# Inexplicable pause in Julia execution

**URL:** https://discourse.julialang.org/t/inexplicable-pause-in-julia-execution/79076
**Category:** General Usage
**Created:** [April 6, 2022, 12:06am UTC](https://discourse.julialang.org/t/inexplicable-pause-in-julia-execution/79076 "2022-04-06T00:06:21Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)
#### Post date: [April 6, 2022, 12:40pm UTC](https://discourse.julialang.org/t/inexplicable-pause-in-julia-execution/79076/2 "2022-04-06T12:40:17Z")

</div>

> [@Jake](#):
>
> I clicked the mouse at random in the terminal running Julia, and seemingly jarred it back to life.

Julia doesn’t listen to mouse clicks,\* so this seems just well an _apparent_ random pause/slowness in your Julia program, and it would have continued without you doing anything. I suspect something like an anti-virus program interfering, especially on Windows, maybe something built-in. Your \*own _Julia_ program can listen to the mouse (even in the terminal, on Linux, Windows and macOS, I wasn’t sure possible, I confirmed in Python with “from pynput import mouse”), but if so you could or should know if it did.

There are some exceptions, like in Linux middle clicking might paste text, so it would look like input from the keyboard. Julia would also ignore such for your program, except _maybe_ CTRL-C, unless your program were expecting input.

`*` I’m pretty sure about this, there’s no good reason for Julia or other languages, such as C++ (it neither has any mouse support in its standard library, nor seemingly Python), to do it (Visual Basic might be an exception), by default. I even checked the source code for Julia for “mouse” and I only found emoji/mouse false-alarms:

```julia
    "\\:mouse:" => "🐭",
    "\\:mouse_trap:" => "🪤",

```

FYI: If you DO want to listen to a mouse, there’s seemingly some Julia code available (or you could call Python with the the above mentioned library), so if you suspect your code doing that, you can look up if relevant Julia (or e.g. Python) packages used:

> [@Ever wanted to automate your keyboard and mouse and perform clicks/take screenshots?](https://discourse.julialang.org/t/ever-wanted-to-automate-your-keyboard-and-mouse-and-perform-clicks-take-screenshots/41848):
>
> I could not find any package to automate the keyboard/mouse so I built a wrapper of a Python library using PyCall. This allows you to perform complex key clicks/take screenshots/scroll etc using Julia syntax/arrays etc!!! slight_smile[Repository](https://github.com/SubhadityaMukherjee/autogui.jl) Examples provided in the test [notebook](https://github.com/SubhadityaMukherjee/autogui.jl/blob/master/test/testAndSource.ipynb) [HELP] Every function works when run in a notebook but when I make it into a package I get PyCall errors. Could someone help me fix it? Its the only thing left. ERROR: ArgumentError: ref of NULL PyObject

---

_[View the full topic](https://discourse.julialang.org/t/inexplicable-pause-in-julia-execution/79076)._
