#SingleInstance - Syntax & Usage | AutoHotkey v1

The #SingleInstance directive determines whether a script is allowed to run again when it is already running.