Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • Opening and closing App.

$
0
0
First of all I would like to greet all users and moderators.

With this message I am asking for support to solve a problem.

For some time I have been using a script that allows me to close and open a program with just a key combination.

I recently encountered it not working when a program is minimized in the notification area at the bottom right.

Below is the script.

Regards.
Marco

CODE:

#Requires AutoHotkey v2.0.11

; Win

#1::
{
if WinExist("1Password")
{
ProcessClose "1Password.exe"
}
else
{
Run "C:\Users\marco\AppData\Local\1Password\app\8\1Password.exe"
}
}

Statistics: Posted by Marco Gatti — 30 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles