INTERACT FORUM

More => Old Versions => Media Center 17 => Topic started by: R3V3RB on March 21, 2012, 09:30:31 pm

Title: Closing Program (without it maximizing)
Post by: R3V3RB on March 21, 2012, 09:30:31 pm
Hello,

I'm using MediaCenter for audio use and so I have the settings adjusted so that the program runs in miniview. When I go to close the program either by clicking the x in the programs top corner or by selecting file>exit or by clicking alt+f4 the program maximizes to full screen instead of closing as it's being told to.
I'd appreciate any help with this,
Thanks.
Title: Re: Closing Program (without it maximizing)
Post by: MrC on March 21, 2012, 10:19:57 pm
There was a change made in early MC17 beta's, which the devs describe as:

Quote
WM_CLOSE should do the same thing as Alt+F4.  So if you're in Display View or Theater View, this should fall back to Standard View.

To close Media Center completely, you can use MCC_EXIT (20007):
MCC_EXIT,                                      // [int nMode (0: normal, 1: force close (close media server), 2: force close (allow media server))]

I suspect that Mini-view is similar to Display or Theater View, in that the close actually returns to Standard View, whereby you could hit Alt+F4 again.

If so, you can program a key to close entirely.  You can test this in a command line with the command:

  mc17.exe /mcc 20007

Ask if you need help setting this up and want to proceed.
Title: Re: Closing Program (without it maximizing)
Post by: audioriver on March 22, 2012, 10:14:27 am
I'm also interested in this. Is there a way to permanently change the default behaviour, to close immediately instead of switching to Standard View first?