FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Sleep Mode Script

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  
Author Message
MaxPower
Newbie


Joined: 16 Jul 2007
Posts: 3

PostPosted: Mon Jul 16, 2007 3:11 pm    Post subject: Sleep Mode Script Reply with quote

Hey Guys,

while laying in bed last night listenening to music I noticed we need a sleep mode function in this excellent remote software.

So here it is, I have only tested it in vista but almost 100% certain it will work in xp as well. Enjoy and let me know what your feedback is.

Cheers,


***************
New Release v2.0!
***************



Sleep Shutdown v2.zip
 Description:
Sleep Mode v2.0 (New Release 25-7-07)

Download
 Filename:  Sleep Shutdown v2.zip
 Filesize:  157.48 KB
 Downloaded:  1406 Time(s)


Sleep Shutdown.zip
 Description:
Sleep Mode

Download
 Filename:  Sleep Shutdown.zip
 Filesize:  891 Bytes
 Downloaded:  991 Time(s)



Last edited by MaxPower on Wed Jul 25, 2007 2:15 pm; edited 4 times in total
Back to top
View user's profile Send private message
dadoggisout
Newbie


Joined: 14 May 2007
Posts: 7
Location: Bucharest Romania

PostPosted: Mon Jul 16, 2007 5:13 pm    Post subject: Reply with quote

I can't find the script in clicker items to test it! Any ideas??? Too bad for me, the script sounds great!
Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Mon Jul 16, 2007 11:19 pm    Post subject: Reply with quote

Did you put the unzipped folder in the "My Clicker Scripts" folder?

Best.
--
Jonas

[quote="dadoggisout"]I can't find the script in clicker items to test it! Any ideas??? Too bad for me, the script sounds great![/quote]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dadoggisout
Newbie


Joined: 14 May 2007
Posts: 7
Location: Bucharest Romania

PostPosted: Tue Jul 17, 2007 5:49 pm    Post subject: Reply with quote

Yes i did but i still can't find the script!
Back to top
View user's profile Send private message
melquiades
Junior Member


Joined: 24 Nov 2006
Posts: 50
Location: Washington, DC

PostPosted: Wed Jul 18, 2007 3:08 am    Post subject: Reply with quote

MaxPower,
Nice idea for a script. If you're using other scripts as templates for your own, make sure to change the UUID in your .xml file otherwise it will create a conflict between the two scripts and only one will be recognized.

You can find a UUID generator here:

w w w.famkruithof.net/uuid/uuidgen/
(fix the www - no direct links allowed in the forum).

Copy the UUID, replace the old one in your .xml, and everything should work fine.

Mel
Back to top
View user's profile Send private message
dadoggisout
Newbie


Joined: 14 May 2007
Posts: 7
Location: Bucharest Romania

PostPosted: Wed Jul 18, 2007 9:48 am    Post subject: Reply with quote

finally it works! 10x melquiades!
Back to top
View user's profile Send private message
MaxPower
Newbie


Joined: 16 Jul 2007
Posts: 3

PostPosted: Wed Jul 18, 2007 12:50 pm    Post subject: Reply with quote

Hey Guys,

Thanks for the info melquiades, I thought I changed it but didnt, oops (i was tired). Anyway I found that windows shutdown has a timer limit of only 600secs so I have included a freeware program along with mine which u need to copy it into the windows system32 directory. This allows for the full potential of the sleep mode :D

Anyway enjoy my script good to see a few people have downloaded it already!

Cheers,
Troy

PS "I found this scripting stuff is fun so i might add more when i get bored, for eg. Hiberate as well as shutdown for you notebook users" :)


Last edited by MaxPower on Wed Jul 25, 2007 2:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
phatez
Junior Member


Joined: 07 Jun 2007
Posts: 49

PostPosted: Thu Jul 19, 2007 7:51 pm    Post subject: Reply with quote

Hey, it will be better if u can let the user set the number of mins before the comp shutdown. Yours is only limited to 1hr. But anyway, nice work. It'll be useful for me.
Back to top
View user's profile Send private message
Stiruam
Newbie


Joined: 13 Jul 2007
Posts: 2
Location: The Netherlands

PostPosted: Sat Jul 21, 2007 7:26 pm    Post subject: Reply with quote

Nice one matey!

Maybe canceling a running shutdown script might be useful..?

[code:1]MenuItems[7] = "Cancel Sleep"

else if( option == "Cancel Sleep" )
{
var wsh = new ActiveXObject('WScript.Shell');
if (wsh)
wsh.Run("shutdown -a");
}[/code:1]

this scipt will let ur PC into Hibernate

[code:1]MenuItems[8] = "Hybernate"

else if( option == "Hybernate" )
{
var wsh = new ActiveXObject('WScript.Shell');
if (wsh)
wsh.Run("rundll32.exe PowrProf.dll,SetSuspendState 1,0,0");
}[/code:1]
also u might wanna add a message why ur pc is shutting down so try this script

[code:1]MenuItems[9] = "Sleep 60min"

else if( option == "Sleep 60min" )
{
var wsh = new ActiveXObject('WScript.Shell');
if (wsh)
wsh.Run("shutdown -s -t 3600 -c "Salling Clicker: Salling Clicker: Your computer will shut down after 1 hour");
}[/code:1]

Greetz, Stiruam
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
MaxPower
Newbie


Joined: 16 Jul 2007
Posts: 3

PostPosted: Wed Jul 25, 2007 2:13 pm    Post subject: Reply with quote

Hey Guys,

Thanks heaps for the ideas and feedback for this script. (esp Stiruam ;) )

I have taken your ideas and released v2.0! (available from top post)



Updates for v2.0 compared to v1.1
_________________

- Added forced shutdown so it kills applications which may hang and stop shutdown from happening

* New Features
- Sleep Hibernate Menu added
- Enabled sleep mode up to 2 hours!
- Cancel Sleep (shutdown and hibernate)


As always thanks for downloading and keep the idea's coming..

Cheers,

:)
Back to top
View user's profile Send private message
ombre33
Newbie


Joined: 08 Aug 2007
Posts: 1

PostPosted: Wed Aug 08, 2007 12:50 pm    Post subject: Reply with quote

any chance you could also add sleep mode? it's just that i hate to turn off my laptop (takes ages to reboot) and i have hibernation mode disabled (takes up too much disk space..)

that'd be awesome

thx

.-ombre-.
Back to top
View user's profile Send private message
fireworm
Newbie


Joined: 28 Jul 2007
Posts: 1
Location: Denmark

PostPosted: Sun Sep 02, 2007 1:12 pm    Post subject: Sleep mode Reply with quote

[quote="ombre33"]any chance you could also add sleep mode? it's just that i hate to turn off my laptop (takes ages to reboot) and i have hibernation mode disabled (takes up too much disk space..)

that'd be awesome

thx

.-ombre-.[/quote]

That would really be great! I agree :D
Back to top
View user's profile Send private message
explicitlyrics
Newbie


Joined: 23 Jan 2006
Posts: 8
Location: www.rentapent.com

PostPosted: Mon Sep 03, 2007 2:32 am    Post subject: Reply with quote

Have a look at my script at:

http://www.salling.com/forums/viewtopic.php?t=5877&sid=449f439844b16ca2fcad32b74262f58f

Does it all and I can (or you can because it is so easy) add anything else you request. Can do the request very quickly aswell :p
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group