jpginc / windows10DesktopManager

An autohotkey desktop manager
Apache License 2.0
165 stars 22 forks source link

tray icons; .pid-based singleInstance mechanism for dllCaller.ahk #23

Closed bits-of-static closed 6 years ago

bits-of-static commented 6 years ago

nothing special...but the standard icon ain't especially good. Especially not for ahk-developers trying out new snippets :)

bits-of-static commented 6 years ago

I just noticed the dllCaller.ahk also has the default icon. Could be removed from tray by adding #NoTrayIcon to the autoexecute section.

jpginc commented 6 years ago

sorry for the slow reply, i like the idea of a custom icon. not sure what your doing with the ensureSingleInstancePropertyOrDie function?

bits-of-static commented 6 years ago

Monitoring when a window closes requires a constant loop in the background and eats about 2% CPU. As far as I understood, it's just a dll-hook which is made available for the system, so it's ok if it stays loaded and idle even when app should close.

Replaced by .pid mechanism -- slightly different semantics, but it also allows reload. Kills the old instance and creates a new one.

Reloading mainly a feature for developer, but everyone profits from the saved cycles.

jpginc commented 6 years ago

just got a chance to see the new icon, looks good. thanks for your effort