Jump to content
Sign in to follow this  

Activate 'Minimized to Tray' Item

Recommended Posts


I am using a tray-minimizer (on XP) called '4t Tray Minimizer'. It works well.

I'm trying to write an AU3 script which will restore the window of a particular app (UltraExplorer).

The script works fine if I've minimized the app normally. It will also restore the window if I've 'minimized' to tray...BUT, a tray icon persists, and if I try 'minimize to tray' at that point it won't work (although normal minimize-to-taskbar works).

I guess I need to kill the systray icon somehow but I'm not clear on how to do that...the Tray stuff seems to be about creating my own tray icons, not polling/killing ones created by external apps.

Any help most appreciated. Here's my current script:

$WinTitle = "UltraExplorer"

If WinGetState($WinTitle) = 23 Then ;WinState = minimized to Taskbar


Else ;WinState usually = 5, minimized to SysTray

;I've tried all three of the below commands, alone and in combination, but results are the same - UltraExplorer restores, but won't minimize to tray again, and SysTray icon persists


;WinSetState($WinTitle, "", @SW_ENABLE)

;WinSetState($WinTitle, "", @SW_RESTORE)


Edited by jasonp

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.