gmamaladze / globalmousekeyhook

This library allows you to tap keyboard and mouse, detect and record their activity even when an application is inactive and runs in background.
MIT License
1.05k stars 257 forks source link

Global Events does not work. App Events are glitchy. #140

Closed Tatami4865 closed 3 years ago

Tatami4865 commented 3 years ago

Good afternoon! While using this library, two problems arose: 1) If you place the code to activate Global Events in a separate class (in a method) and then call it in the main form (FormName_Load) - then Global Events stops working (nothing happens). 1.1) If you use the code to activate Global Events in the main form (FormName_Load), without wrappers - everything works. 1.2) The code to activate App Events works anyway.

2) App Events start working strangely if you create 2 or more forms and put, in each separately, a key combination, (for example: to change the color of the form). Then run 2 forms (using Form2.Show() from Form1) and press key combinations - the color changes, simultaneously, in both forms. After several keystrokes, the key combination stops working in the first form (the second continues to change color).

Tatami4865 commented 3 years ago

...