Close multiple instances of Skype.exe

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
freespacing
Posts: 150
Joined: 28 Sep 2016, 11:14
Contact:

Close multiple instances of Skype.exe

09 May 2022, 10:10

Skype notoriously likes to hang around without closing. In the past I had a simple hotkey that worked with a

Code: Select all

Process, Close, Skype.exe
Recently this stopped working as there are five or six Skype.exe processes at the same time.
I tried this but it didn't work (no processes seem to be killed):

Code: Select all

^!F4::
While (Process, Exist, Skype.exe)
    {   
    Process, Close, Skype.exe
    }
Return
Would some of you have any advice?
User avatar
mikeyww
Posts: 27241
Joined: 09 Sep 2014, 18:38

Re: Close multiple instances of Skype.exe

09 May 2022, 10:15

You cannot use a command as an expression instead. That command returns an ErrorLevel, so you could check the ErrorLevel inside a loop. Alternatively, use taskkill.

Explained: Process

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, Google [Bot] and 179 guests