INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Feature Request: MCC command to toggle between Show and Minimize Window  (Read 151 times)

markf2748

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 895

Background: Commands MCC_SHOW_WINDOW (10013) and MCC_MINIMIZE_WINDOW (10014) work nicely, but they require two separate buttons.

Request:  A single button command MCC_SHOW_MINIMIZE_WINDOW which toggles between Show Window / Minimize Window and occupies only one button slot, analogous to MCC_PLAY_PAUSE (10000).

Application:  Makes logical sense and reduces clutter.  Especially for the new Playing Now Popup, a single button would reduce the footprint or allow for another button in the saved space.  My clunky workaround is to use two "half height" buttons stacked vertically to fill a single button slot.  It works, but is far from optimal and requires two simultaneously displayed icons instead of showing a single button for the next operation.

Advanced Feature:  Allow the transition to occur with a mouseover, instead of requiring a button press.
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9218
Re: Feature Request: MCC command to toggle between Show and Minimize Window
« Reply #1 on: February 21, 2025, 02:32:25 pm »

Advanced Feature:  Allow the transition to occur with a mouseover, instead of requiring a button press.
Really? You would want that? I was with you all the way till I read that, and was struggling to imagine anything more undesirable, or unintuitive. Sorry

What I think you meant was, if this command were to be introduced, it would be an added bonus if the pop-up were to allow two icons, depending on current state, as it already does for mute on/off and play/pause
Logged

Some alternative skins are here | Import Stats on Steroids | Middle click the close button=One of the neatest things added to MC in a long time

markf2748

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 895
Re: Feature Request: MCC command to toggle between Show and Minimize Window
« Reply #2 on: February 21, 2025, 02:46:07 pm »

What I think you meant was, if this command were to be introduced, it would be an added bonus if the pop-up were to allow two icons, depending on current state, as it already does for mute on/off and play/pause
Correct, that is the main point.  The Advanced Feature is icing on the cake.

I was about to correct it to "Optional Advanced Feature" - it's not the primary request.  I really love the way the tooltip for MC's Windows Taskbar icon works.  If you hover the mouse over the popup (but not over its Playback controls), its last window snapshot temporarily opens.  Slide the mouse off the popup, and the "window" automatically collapses again, all without any mouse clicks!!  Clicking during the mouseover makes the open window stick and changes it to live.  An  improvement over the Taskbar would be to ensure the mouseover displays current state of the player, with no possibility of a stale snapshot.  That is the optional advanced behavior I am asking for with mouseover on the button.  Apologies for not describing it very well.

Actually, I would take it one step further:  If the window is already open, mouseover the button temporarily minimizes it, sliding off without a click leaves the window open as is, and clicking makes the minimize stick.   :)

Still another way of saying it:  Mouseover gives you a temporary look at current MC window (or the screen with the window minimized) before you commit by hitting the button.

2/22/2025 Minor edits for clarity.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2812
Re: Feature Request: MCC command to toggle between Show and Minimize Window
« Reply #3 on: February 21, 2025, 03:12:49 pm »

NIRCMD can do it:
nircmd win togglemax process "Media Center 33.exe"

togglemin doesn't work for some reason.
Logged

markf2748

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 895
Re: Feature Request: MCC command to toggle between Show and Minimize Window
« Reply #4 on: February 21, 2025, 03:30:41 pm »

NIRCMD can do it:
nircmd win togglemax process "Media Center 33.exe"

togglemin doesn't work for some reason.
Interesting.  But I am primarily looking for an easy way to incorporate this behavior into the new Playing Now Popup.  Something analogous to:

Code: [Select]
  <ContentItem Type="image" Name="Play"     X="150" Y="84" Width="35"  Height="35" Source="{PlayerBar,PlayButton,0}    ||{PlayerBar,PlayButton,1}    ||{PlayerBar,PlayButton,2}"     Tooltip="Play"  Command="10000" HideStates="2,3" />
  <ContentItem Type="image" Name="Pause"    X="150" Y="84" Width="35"  Height="35" Source="{PlayerBar,PauseButton,0}   ||{PlayerBar,PauseButton,1}   ||{PlayerBar,PauseButton,2}"    Tooltip="Pause" Command="10000" HideStates="0,1" />
where the same MCC command (10000) works great for Play / Pause, using two different overlapped icons and showing one or the other depending on current state. 

It might be simplified by not sourcing from existing icons of the current skin - just use icons in the Playing Now Popup skin directory.  But allowing to source from the MC Standard Skin would be desirable for broader style compatibility.
Logged
Pages: [1]   Go Up