When I close a certain app (Zoom) it appears in my notification area and continues to run as a background process. I have to manually right click and exit the program (or open task manager and exit) each time. How can I prevent it from running as a background process and force it to automatically shut down completely when I close the program?
Note: It doesn't appear in settings>privacy>background apps. I already checked that.
76 Answers
This annoys me too, so I wrote a oneline AutoHotKey script for this:
^q::run, taskkill /f /im zoom.exeThis does the following:
^qmeans control + q. You can change this to another shortcut if you like, I'm just used to using this already for closing programs.run,runs the following command in a CMD shell.taskkilllets us kill the specified process./f /im zoom.exemeans to force close the process called zoom.exe.
If you're new to AHK, you can use the snippet in the following way:
- Download and install AHK.
- Save the above script into a file with an
.ahkextension. - You can add the script to your startup folder (or add a shortcut to it) so it will run in the background when you start your computer.
- Just remember to ctrl+q when you're done with zoom to close it :)
I put together a script that will close zoom (if it isn't in a meeting) when Alt+F4 was pressed or to close it outright if Alt+Ctrl+F4 was pressed, both shortcuts still work normally if zoom isn't the selected window.
;Alt + F4 (will close zoom if it is the selected window except during a meeting)
$!F4::
if WinActive("ahk_exe Zoom.exe") { if WinExist("Zoom Meeting") { return } else { Run cmd.exe /c taskkill /F /IM zoom.exe,, hide } }
else { send !{F4} }
return
;Alt + Ctrl + F4 (will close zoom if it is the selected window)
$!^F4::
if WinActive("ahk_exe Zoom.exe") { Run cmd.exe /c taskkill /F /IM zoom.exe,, hide }
else { send !^{F4} }
returnI have also compiled the above script into an executable file, this allows it to work even if you don't have AutoHotKey installed.
The only reliable way to do this is:
- Remember which specific apps have this "always minimize to system tray when user closes window" and instead of closing the window, mouseover the systray icon, click and select Exit.
- Automate the above process with AutoHotKey or similar (beyond my abilities).
- Write a background Windows 10 app to allow administrator to disable a list of programs from running in the background, alt. always exit application when user clicks the X to close a window.
It's an ad hoc solution, but it may be helpful for you. You click the Close button, AutoHotKey kills the zoom process. The position pixel numbers 2, 78 and 43 are for my PC, you may need to adjust them to your PC.
For people you don't know AutoHotKey, download it here and install. Then, make a text file with "quit-zoom.ahk" or something like that and paste the code into it. You can put the ahk file in the Windows startup folder.
#IfWinActive, ahk_class ZPPTMainFrmWndClassEx
~LButton:: CoordMode Mouse, Window MouseGetPos MX, MY WinGetPos, WX, WY, WW, WH, A X := WW - MX Y := MY if (X > 2 && X < 78 && Y > 2 && Y < 43) { Sleep, 500 Process, Close, zoom.exe } Return
#IfWinActive An alternative solution. This one does not rely on mouse coordinates but responds to the Windows "Close" message:
#IfWinActive ahk_class ZPPTMainFrmWndClassEx
~LButton:: CoordMode, Mouse, Screen MouseGetPos, X, Y, HWND if !(HWND = WinExist("Zoom Meeting")) { SendMessage, 0x84,, (Y << 16)|X,, ahk_id %HWND% if (ErrorLevel = 20) Process, Close, zoom.exe }
return As someone said - we can create work around, but Zoom designers thinking that 'X' means run in background is a flaw. They should have atleast given the user a choice to select "exit" or "run in background" in settings.
In a similar tone, I hate when program installation thinks that a shortcut on desktop should be created...
1