INTERACT FORUM

Please login or register.

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

Author Topic: wiki on keyboard shortcuts: toggle minimize to tray and back  (Read 1983 times)

urlwolf

  • Regular Member
  • World Citizen
  • ***
  • Posts: 235
  • building gomotron!
wiki on keyboard shortcuts: toggle minimize to tray and back
« on: December 20, 2007, 12:51:11 pm »

Just found the wiki:
http://wiki.jrmediacenter.com/index.php/Media_Center_windows_messages#System

So now global shortcuts can be defined (great).

I want to have one key to send MC to tray and get it back (a toggle)
This sends MC to the tray (if minimize to tray is on in the options page)
<Entry Key="Ctrl;F1" Command="10014" Param="0" Global="1" />

But there's no way to bring it back.
Is there any message to toggle from system tray? If not, could we have one?

Thanks.

PS: Just to make sure, the replaygain info is now compatible with foobar, right? (not the former proprietary format)
   
Logged

Robo983

  • World Citizen
  • ***
  • Posts: 196
Re: wiki on keyboard shortcuts: toggle minimize to tray and back
« Reply #1 on: December 20, 2007, 03:42:50 pm »

I do not know if it can be a toggle but I use the following to minimize on my remote config button (http link to wiki where i found info). Note you have to use the MC12.exe not the Mediacenter.Exe in the Program files. The command below is the Hauppauge remote.ini line your remote may be different. I also had it working at one point with a line in the custom resources Resources.xml file so that a costom key sequence could initiate the same MCC 10014 then assigned that key sequence to my power button on the remote. I found one drawback to this if you use Library Server and that is it doesn't ever restart the server so new files added do not show until you restart MC on the client or refresh the library manually.

GRNPOWER={run(C:\WINDOWS\system32\MC12.exe /MCC 10014)}
http://wiki.jrmediacenter.com/index.php/Media_Center_windows_messages

I use a Program Moduel in Meedio to re-launch it from the minimized state. I use the command line below. It wouldn't be the greatest but you could program a second button to re-open it if you have a button available.

mc12.exe /Mode [Theaterview]
http://wiki.jrmediacenter.com/index.php/The_Command_Line

Wiki Link for custom resouces resouces.xml
http://wiki.jrmediacenter.com/index.php/User_Defined_Global_Keyboard_Shortcuts
Logged

Robo983

  • World Citizen
  • ***
  • Posts: 196
Re: wiki on keyboard shortcuts: toggle minimize to tray and back
« Reply #2 on: December 20, 2007, 04:03:16 pm »

Hey I came back with an idea that if you wanted to use your custom resources file as you did to minimize you should be able to program a key sequence using the 22000 code with the appropriate paramater.

22000  MCC_TOGGLE_MODE  -1: Next Mode, 0: Standard, 1: Mini, 2: Full Screen, 3: Theater View, 4: Windowed

I also noticed my last sentence made no sense. The problem I see isn't with using the command in the resouces.xml it is with minimizing MC vs closing the app completely and reopening when not in use. Since MC isn't being closed the Library server isn't reloaded when you only minimize. Minimizing is noticably faster to reopen though and there is no refresh button in Theater view.
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: wiki on keyboard shortcuts: toggle minimize to tray and back
« Reply #3 on: December 20, 2007, 05:21:30 pm »

Just found the wiki:
http://wiki.jrmediacenter.com/index.php/Media_Center_windows_messages#System

So now global shortcuts can be defined (great).

I want to have one key to send MC to tray and get it back (a toggle)
This sends MC to the tray (if minimize to tray is on in the options page)
<Entry Key="Ctrl;F1" Command="10014" Param="0" Global="1" />

But there's no way to bring it back.
Is there any message to toggle from system tray? If not, could we have one?

Thanks.

PS: Just to make sure, the replaygain info is now compatible with foobar, right? (not the former proprietary format)
   
using 10027 should maximize the window. 10028 should restore it. you can find the commands here: http://wiki.jrmediacenter.com/index.php/Media_Center_Core_Commands
Logged

urlwolf

  • Regular Member
  • World Citizen
  • ***
  • Posts: 235
  • building gomotron!
Re: wiki on keyboard shortcuts: toggle minimize to tray and back
« Reply #4 on: December 20, 2007, 06:02:59 pm »

gappie, I tried those, but when the window is minimized to system tray they have no effect.
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: wiki on keyboard shortcuts: toggle minimize to tray and back
« Reply #5 on: December 20, 2007, 06:12:13 pm »

gappie, I tried those, but when the window is minimized to system tray they have no effect.
i just tested. 10028 works only as minimized but not when minimized to the system tray. 10027 does though. but im on xp, if that could make any difference.

EDIT: you are on the latest build? 399. a build a while back had some problems with what file is the boss when making a custom resource file, something like that.
Logged
Pages: [1]   Go Up