INTERACT FORUM

Please login or register.

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

Author Topic: Shutdown MC with Girder  (Read 1873 times)

jleerigby

  • Guest
Shutdown MC with Girder
« on: January 09, 2004, 09:48:28 am »

I've set up a Girder command that shut's down MC and another one that shut's down the PC.  What I'd like to do is pop a confirmatory message with the OSD and only shut down if the button is pressed a second time within a few seconds.  Can anyone tell me how to do this?
Logged

Monkeyboy

  • Regular Member
  • World Citizen
  • ***
  • Posts: 247
  • I'm a Monkey
Re:Shutdown MC with Girder
« Reply #1 on: January 09, 2004, 10:05:55 am »

Could you not assign a button that toggles what is going to happen when the shutdown command is issued?
Only this would take up another button.
I used it for my shutdown timer, so I can change my mind if need be.
Rich
Logged

KingDodo

  • Regular Member
  • World Citizen
  • ***
  • Posts: 127
  • nothing more to say...
Re:Shutdown MC with Girder
« Reply #2 on: January 09, 2004, 10:32:26 am »

Hi,

I have searched a plugin for MC that could let me shutdown MC after it have played all the playlist, or that could shutdown it after the time i have given. But if you can do this with girder, could you send me your command after you will have finish it?

Thanks
Logged
French peoples, visit my portal :
Francophones, visitez mon portail:
www.kingdodo.com

Monkeyboy

  • Regular Member
  • World Citizen
  • ***
  • Posts: 247
  • I'm a Monkey
Re:Shutdown MC with Girder
« Reply #3 on: January 09, 2004, 10:40:39 am »

you can easily build a shutdown timer using girder.
I have a button which you press to add 15 mins to a timer, this shows on an OSD. I added a button so you could toggle whether after this time it shuts down MC or the computer.
you can also view the current time left, and cancel the timer.
Let me know if this would interest you, and I can send you my config.
(I am using an X10/ATI)

Rich
Logged

KingDodo

  • Regular Member
  • World Citizen
  • ***
  • Posts: 127
  • nothing more to say...
Re:Shutdown MC with Girder
« Reply #4 on: January 09, 2004, 10:51:35 am »

It very interest me ! Could you send me your command??? i will try to add it :)
Logged
French peoples, visit my portal :
Francophones, visitez mon portail:
www.kingdodo.com

Monkeyboy

  • Regular Member
  • World Citizen
  • ***
  • Posts: 247
  • I'm a Monkey
Re:Shutdown MC with Girder
« Reply #5 on: January 09, 2004, 11:26:44 am »

ok, I exported the sleep timer part of my config.
One thing to note, I found that the power off function in Girder was sometimes not good enough to shut everything down that was running, so I made a batch file to be run instead that forced shutdown.
I have put this back to the original way, you might find it sufficient.
You'll need to enable the alarmtimer plugin and download the XP OSD plugin from the girder website, or modify it to use the existing one (not as nice). The XP OSD will need some setting up(nice to add fade etc), the settings are not kept in the config as far as I can remember.
I think this should work independent of any other bits of my config, let me know if you have any trouble.
http://www.richy759.co.uk/MC/sleeptimer.gml
I dont take any credit for this sleep timer, I have just modified one made by a guy called Bitmonster who appears to be a Girder genius.  :P

Rich
Logged

Zarius

  • Regular Member
  • World Citizen
  • ***
  • Posts: 178
  • Addicted to smilies.
Re:Shutdown MC with Girder
« Reply #6 on: January 09, 2004, 09:26:25 pm »

JLee:
I've set up Girder to do this before (I've got one key that stops winamp if it's playing, then displays an OSD that says 'Press again to close winamp.')  The stopping of winamp requires knowledge of whether it is currently playing or not, I don't think this can be done with MC... however the two button shutdown can be.  

I'll describe it below, but if you want help or just a copy of the Girder Group - I'm on ICQ/Yahoo/MSN/IRC, or I could PM you the XML (just cut and paste into Girder).

Monkeyboy's way works fine too... depends on how you want to do things, nice to have plenty of options :)


(Create three multigroups - 1,2 and 3 below)

1. Sub: Shutdown (test close variable)
*This is where you learn the events*
Create a multigroup that tests a variable (eg MC_Shutdown - note, variables are case sensitive) is set to one.  If it is, jump to 3.  If not, jump to 2.

2. Sub: Shutdown (button test subroutine)
This multigroup first display an OSD that says "Press again to shutdown" (or whatnot), an alarmtimer, a break command ("stop processing") plus one command to set the variable to 1, and one to set it to 0 (both after the break command).  The timer is set to the same time as the OSD (I've got them both at 1000ms - 1 sec), repeat is -not- ticked, OnStart jumps to 'set variable' & both OnEnd & OnCancel jump to 'delete variable'.

3. Shutdown (main command)
Put whatever you want to occur to shutdown things in here.
Logged

KingDodo

  • Regular Member
  • World Citizen
  • ***
  • Posts: 127
  • nothing more to say...
Re:Shutdown MC with Girder
« Reply #7 on: January 10, 2004, 06:05:42 pm »

Mmmm Rich?

Could you tell me how to start the timer? I have loaded the plugin and included your file in the original file of MC...

Thanks
Logged
French peoples, visit my portal :
Francophones, visitez mon portail:
www.kingdodo.com

Monkeyboy

  • Regular Member
  • World Citizen
  • ***
  • Posts: 247
  • I'm a Monkey
Re:Shutdown MC with Girder
« Reply #8 on: January 10, 2004, 07:12:06 pm »

Mmmm Rich?

Could you tell me how to start the timer? I have loaded the plugin and included your file in the original file of MC...

Thanks
sure, here goes...
click on the set timer multi group and click add event, then press the button you want to add 15 mins to the timer. You can make sure the command is working by right clicking on the multi group and test command.
For the stop timer button, do the same with the stop timer multi group and time display if you want. Notice if you add more than 2 hours to the timer it cancels it, this can easily be altered by disabling if timer > 2h then goto stop timer.
Hope this solves the problem.

Rich
Logged

jleerigby

  • Guest
Re:Shutdown MC with Girder
« Reply #9 on: January 11, 2004, 07:56:42 am »

Thanks Zarius I'll give that a try.  It sounds complicated though so I'll wait till I've got a few hours spare.
Logged
Pages: [1]   Go Up