PoshSec / PoshSecFramework

A framework for PowerShell and PoshSec scripts for network management, security, and maintenance.
BSD 3-Clause "New" or "Revised" License
145 stars 23 forks source link

When minimizing PoshSec FrameWork #14

Closed addisg closed 10 years ago

addisg commented 10 years ago

When you minimize a running PoshSec FrameWork window it doesn't go to the startbar but instead it goes to the Notification Area of Windows (that's fine)

But running Windows 8, If you pin PoshSec FrameWork to the startbar and then you minimize the window it should show on the pinned Icon that's it's running but it keeps the same behaviour and goes to the Notification Area and the Pinned Icon doesn't show a running program.

Just a small idea but it would be great that it behaved like other programs when running from a pinned icon.

Ben0xA commented 10 years ago

Good to know. Was this Windows 8 or 8.1? I've never seen the pinned programs also serve as the notifyicon. Was this a feature in Windows 8 or was it in 7?

Ben0xA commented 10 years ago

I can look to see if I can duplicate that functionality.

addisg commented 10 years ago

Running on Windows 8.1 I just duplicated it on 8.0 also

See attached Image, Even if everything is minimized you can see that Citrix, Lync og PowerShell ISE is running, PowerShell is not running so that icon is "flat" -- In that screenshot i also have your FrameWork running but it doesn't show that it's running because the application is in the notify area. pinned-win8

Ben0xA commented 10 years ago

Yeah, that is standard "minimized" behavior. The current status is mimized and remove from status bar which wouldn't highlight that pinned icon. I can add an option to show minimized in status bar or not. That will cause the icon to show "running".

addisg commented 10 years ago

For me this isn't such a problem, But if the mission is to try to have more and more people use the FrameWork to more easily use PowerShell, This might be a thing to change.

I just gave it to a Ops guy to try out some script... When I looked at his screen a day later.. He hadn't noticed that it was running in the notification area and was running 6-7 instances of the FrameWork :) :)

Ben0xA commented 10 years ago

I have added a ShowInTaskbar setting. This is in the development branch, not the master. When you set ShowInTaskbar to Yes it will show it in the taskbar normally when minimized. If it is set to No it will hide from the taskbar and show the icon in the notify icon area.

Would you please test and let me know if this is what you were looking for?

Ben0xA commented 10 years ago

If you need me to recompile the binary for development, let me know.

addisg commented 10 years ago

Will try it out later today

Ben0xA commented 10 years ago

Going to close this as it's been open for almost 3 months. If this is still an issue, please reopen and comment.

Thank you!