Close window but not the process

v1 Script Help

I got a tsr type of app that resides in the system tray.

Clicking the icon on the tray creates the window, clicking X on the window closes it back to tray, leaving the background process running. Clicking minimize, minimizes it to taskbar. Fairly standard stuff.

I'm trying to make an ahk script that closes the window when it's active, without killing the background process. Simply closing it back to tray. The same functionality that I would get by manually clicking X on the app's window when active.

Doesn't work. WinClose kills the entire process along with the window, so it disappears from the tray. And WinMinimize minimizes it to the taskbar.

A bit more information about the app.

The process in the task manager appears as a stack of 6 processes, all with the same name, which is also the name of the window when active and different pids obviously.

Opening the window simply moves the entire stack from background tasks to apps, closing it takes it back to background tasks.

No new processes are created when opening the window.

Any ideas?

Posted Oct 22, 2024, 12:34 AM UTC

12

Comments aren't archived yet

This post had 2 comments on Reddit. Comments for this period haven't been loaded into the archive yet.