MathewSachin / Captura

Capture Screen, Audio, Cursor, Mouse Clicks and Keystrokes
https://mathewsachin.github.io/Captura/
MIT License
9.69k stars 1.81k forks source link

Single Instance #505

Closed MathewSachin closed 4 years ago

MathewSachin commented 4 years ago

If you start the app again, the app won't launch again, the already running instance gains focus.

A Mutex is used to ensure that only a single instance runs, and an EventWaitHandle is used to wake the single instance when you try to launch another.