[App]SleepTimer_beta[2010-02-24]Close your media players

Search This thread

arturobandini

Senior Member
Sep 23, 2008
1,366
37
Paris
damn... don't know how long it takes with the FM Player. I tryed to find another process, but the only thing what happend is my phone freezes :p
I think the FM Player uses an WM intern function. Maybe i can shutdown the function, but rings the phone anymore? Maybe it's the right way....
puh... I'm burnout today

PicHunter, don't worry please. It's ok without the FM radio.:)

Don't spend too much time on it. I thought it would be easier...

regards.
 

PicHunter

Member
Jan 10, 2010
16
0
Halle
I will try to add Slacker Radio. Can't prommise, because I don't know if there is the same problem as with HTC FM Radio.
 

arturobandini

Senior Member
Sep 23, 2008
1,366
37
Paris
I like this app.

Nice one.

PicHunter, do you plan to update it a little bit (especially with a nicer interface?)

Thank you very much :)
 

Zepiii

Retired Forum Moderator
Maybe it has a timer... haven't use it :rolleyes:
but without s2p, the list will never be complete ;)

but thanks for this hint!

Anyway, it has a timer, but we must have S2U2 installed to get it working, so your timer program is great for those not using S2U2 ;)

And when I asked A_C to put the timer in S2P instead of S2U2, he said me "NO"... ^^
 

mmiller7

Senior Member
Nov 30, 2009
59
6
Wonderful!

Could you please add TCPMP?

I've wanted something like this ever since I had a Windows Mobile device...
 

Corwin9S

Inactive Recognized Developer
Jan 20, 2009
892
156
www.i900playeraddict.com
Hi.

I quickly made 2 .cab files for your soft, for those who prefer having it so...

:D
 

Attachments

  • SleepTimer021_deu.cab
    190.8 KB · Views: 11
  • SleepTimer021_eng.cab
    190.8 KB · Views: 43

mmiller7

Senior Member
Nov 30, 2009
59
6
Call me impatient but I really wanted sleep for TCPMP and then last night SlingPlayer -- so I wrote a MortScript to do it.

Here's the one I made up, it should be editable by anyone with a text editor and it should work on nearly any application. Currently it only works on Windows Media, TCPMP, and SlingPlayer but you could easily find the titles for other applications and have it close them as well by copying & pasting "if-close-endif" and then changing the window text to match whatever application you like.

sleep.mscr
Code:
#Sleep Timer
#by Matt Miller

#Prompt for number of minutes
sleepTime=Input("Enter sleep time in minutes:","Sleep Timer",true,false,60)

#Convert to seconds
sleepTime=60*sleepTime

#Note system time
actual=TimeStamp()

#Sleep dialog
SleepMessage(sleepTime,"Tap countdown to abort!","Sleep Timer",true)

#Calculate actual time (to test if aborted)
actual=TimeStamp()-actual

If(actual < sleepTime)
	Message("Sleep Aborted!","Sleep Timer")
Else
	#Close applications

	If(WndExists("Windows Media"))
		Close("Windows Media")
	EndIf

	If(WndExists("SlingPlayer"))
		Close("SlingPlayer")
	EndIf

	If(WndExists("TCPMP"))
		Close("TCPMP")
	EndIf

	#Suspend device
	PowerOff
EndIf
 

Clound

Senior Member
Jul 16, 2009
71
0
Singapore
Works well with S2P, even on older version (0.58) :D
Thanks for your great work!
I wonder why MP3 player dun include this simple feature... @@
 

sallal

Senior Member
Sep 8, 2008
143
0
Lower Saxony
/++ for TCPMP

would love a version supporting tcpmp, the most functional player till now! (supporting flashvideos without clattering)

anyways, thanks for your effort developing such a nice program ! =)
 

ajhvdb

Senior Member
Nov 23, 2009
566
12
Very good idea, thx.

I've added this Sleeptimer functionallity to SleepSense too..