# There is an error, so I ask for advice: The program freezes. The program takes a lag

**URL:** <https://discourse.processing.org/t/there-is-an-error-so-i-ask-for-advice-the-program-freezes-the-program-takes-a-lag/23579>\
**Category:** Development\
**Created:** [August 31, 2020, 7:26am UTC](https://discourse.processing.org/t/there-is-an-error-so-i-ask-for-advice-the-program-freezes-the-program-takes-a-lag/23579 "2020-08-31T07:26:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [August 31, 2020, 7:26am UTC](https://discourse.processing.org/t/there-is-an-error-so-i-ask-for-advice-the-program-freezes-the-program-takes-a-lag/23579/1 "2020-08-31T07:26:05Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

Hello. Nice to meet you.

 ![q1](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/132eac4157aedf9de62be34de5166cfaf7003d61.jpeg)

I want to make a monitoring program through’processing tool’.

There is an error in making, so I ask you for advice.

1. Create a program through’processing tool’.

2. Distributed as’exe’ file.

3. If you leave the program on for a long time (between about 1 to 7 days), a freeze occurs.  
(The program freezes. The program takes a lag.)

So, as a solution

1.loop, noloop method

1. How to lower the framerate when there is no click for a while

Is there any other good way? Help the experts.

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [September 1, 2020, 12:04am UTC](https://discourse.processing.org/t/there-is-an-error-so-i-ask-for-advice-the-program-freezes-the-program-takes-a-lag/23579/2 "2020-09-01T00:04:42Z")

</div>

Hi, I would make a program in AHK that plays in the background and never “freezes”.  
AHK can send mouse clicks and keep the processing sketch alive.  
(It can also click on buttons in the sketch.)

---

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [September 2, 2020, 8:29am UTC](https://discourse.processing.org/t/there-is-an-error-so-i-ask-for-advice-the-program-freezes-the-program-takes-a-lag/23579/3 "2020-09-02T08:29:29Z")

</div>

Dear @noel  
AHK / What`s mean?  
It’s my first time listening.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [September 2, 2020, 11:25am UTC](https://discourse.processing.org/t/there-is-an-error-so-i-ask-for-advice-the-program-freezes-the-program-takes-a-lag/23579/4 "2020-09-02T11:25:01Z")

</div>

AHK stands for

> **[AutoHotkey](https://en.wikipedia.org/wiki/AutoHotkey)**
>
> AutoHotkey is a free, open-source custom scripting language for Microsoft Windows, initially aimed at providing easy keyboard shortcuts or hotkeys, fast macro-creation and software automation that allows users of most levels of computer skill to automate repetitive tasks in any Windows application. User interfaces can easily be extended or modified by AutoHotkey (for example, overriding the default Windows control key commands with their Emacs equivalents). The AutoHotkey installation includes Au...

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [September 2, 2020, 1:59pm UTC](https://discourse.processing.org/t/there-is-an-error-so-i-ask-for-advice-the-program-freezes-the-program-takes-a-lag/23579/5 "2020-09-02T13:59:02Z")

</div>

You can download it at the link @Chrisir provided. It installs fast because it is really light weight.  
It can run a program in the background that can detect windows, keys and mouse clicks. Also can it open windows, send keystrokes and mouse clicks. I made a program for someone on the forum,; see [here](https://discourse.processing.org/t/create-image-from-interaction-with-website/18315/7).

---

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [September 3, 2020, 1:54pm UTC](https://discourse.processing.org/t/there-is-an-error-so-i-ask-for-advice-the-program-freezes-the-program-takes-a-lag/23579/6 "2020-09-03T13:54:02Z")

</div>

@Chrisir, @noel

Thank you. ~~
