Sleeptimer kindof (1 Viewer)

joz

Portal Pro
March 17, 2008
1,353
306
Home Country
Netherlands Netherlands
Hey all,

Like so many others here on the forum, the myalarm is not really doing what I want it to do.

So I decided to find some replacement.
I'm using poweroff for a while now and kinda like it. So to get the poweroff functionality in MP I grabbed multishortcut and created some DLL's with it that call poweroff with arguments.
Working fine, I can even poweroff and poweron (wakeup on lan) my homeserver. I know there's a WoL plugin but I just wanted a button in the extramenu, which I've setup now.

Ok all is well, except for one thing. I want a sleeptimer that's adjustable and pops up a message or something, 10 seconds before going to sleep.
With the combination of poweroff and multishortcut, I can only set a static time (say 30 minutes). It would be really cool if I could specify this bit in a popup (the sleepdelay is a argument of poweroff). It shouldn't be to hard to get this kind of plugin outthere but I'm not really into C# (did some at school a while back) and never tried creating my own plugin for MP...

Maybe this is an opportunity for me to get into writing plugins. But I thought I might as well post it here and see what people think of it and maybe can help me out with getting this started.

So to recap:
- What do you think of the idea?
- Give me some hints on how to start off writing such a plugin. I'm a programmer but I mainly focus on J2ME and PHP atm
 

Brutus

Portal Member
December 19, 2005
38
0
Belgium
Hi, I'm also looking for a plugin which will go to standby if system is unattended for a given time (adjustable), before really going to standby an OSD message should appear ... (countdown) ... If you could make something like this I would be very happy.
 

joz

Portal Pro
March 17, 2008
1,353
306
Home Country
Netherlands Netherlands
Hey Brutus.

If I would to this I'd do it the right way and indeed write a plugin from scratch and not use some external program like I suggested in my opening post (poweroff).
But I kinda found what I wanted already. A program when launched multiple times goes from 15 minute till sleep to 30 minutes, 45 minutes etc.
It's called TVLikeSleep, you can find that here if you're interested:
http://www.softhunters.com/download/tv_like_sleep/tv_like_sleep.zip
If you map the program to a button on your remote by ways of a program like girder then you'll have TV like sleep functionality in MP.
 

joz

Portal Pro
March 17, 2008
1,353
306
Home Country
Netherlands Netherlands
Well yes incorporated maybe but not dependent, at least from my point of view.
I use a hot-seat installation without any server.
 

joz

Portal Pro
March 17, 2008
1,353
306
Home Country
Netherlands Netherlands
Nope except that I found a solution that's working for me :)
see the 3rd post
 

disaster123

MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    mhm but it does not print an OSD in MP... how do you know how much minutes are left and so on?
     

    joz

    Portal Pro
    March 17, 2008
    1,353
    306
    Home Country
    Netherlands Netherlands
    It does but you have to set MP not to be always on top.
    Besides that it doesn't sleep the PC (like the name suggests) but it completely powers it off, which is actually what I wanted :)
     

    Users who are viewing this thread

    Top Bottom