Welcome Guest.   Make a donation to an author on the site July 29, 2010, 03:40:09 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Latest Newsletter: July 14th, 2010 - "Friends of a Feather"
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: IDEA: Run on unhibernation  (Read 4401 times)
m0rph
Participant
*
Posts: 4

View Profile Give some DonationCredits to this forum member
« on: September 15, 2007, 09:27:21 PM »

Hey guys,

I was wondering if one of you would know a way or know of a program or would like to create a program that would run or do something upon the machine unhibernating.
Logged
jgpaiva
Global Moderator
*****
Posts: 4,174



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: September 16, 2007, 05:51:33 AM »

If nobody knows of something that does this, this thread has all the info on making an ahk script that'll do it.

m0rph: what exactly would you like it to do on unhibernation?
Logged

m0rph
Participant
*
Posts: 4

View Profile Give some DonationCredits to this forum member
« Reply #2 on: September 17, 2007, 11:23:10 AM »

Well, initially I want it as a way to circumvent a bizarre issue with my laptop.

It doesn't have any WOL (Wake-On-LAN) features of any kind enabled in the BIOS, yet after hibernating, within a matter of a few random hours, it will spur back to life. The problem is it usually does this overnight and often while in my backpack and when I try to turn it on with the battery the next morning, it's been drained. (duh!)

So, if I could have a prompt with a timeout to ask me if I wanna return to hibernation, then I could have it rehibernate after mysteriously waking up and keep doing so as much as needed. This way at least I'd have some battery left for the next day. (It doesn't unhibernate immediately... it's after a random amount of hours.)

But there's other things I could do with it, too.
Logged
jgpaiva
Global Moderator
*****
Posts: 4,174



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: September 17, 2007, 11:59:28 AM »

Ok, then i'll do you a program that'll run a specific Executable when the computer comes back from hibernation!

Just give me a few hours Wink
Logged

jgpaiva
Global Moderator
*****
Posts: 4,174



Artificial Idiocy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: September 17, 2007, 12:37:41 PM »

Ok... And it's done!

It's really simple to use. Just launch it with a command line argument which is the program (or file) you'd like to launch. To do so, you can just drop the file on to the executable, or you can make a shortcut to it with that file as an argument.
To launch several files in order, just make a .txt file with a list of the path to each file, rename it to a .bat file and launch that .bat file as argument to RunOnUnhibernation!


RunOnUnhibernation v1.0 created 17-09-07:
Quote
Run the program passed as argument on cumputer unhibernation
[Forum Topic] [.ahk Version] [.exe version]
« Last Edit: September 17, 2007, 12:40:03 PM by jgpaiva » Logged

m0rph
Participant
*
Posts: 4

View Profile Give some DonationCredits to this forum member
« Reply #5 on: September 18, 2007, 12:59:44 AM »

That's great! Just what I needed and wanted.

Thank you so much. cheesy
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
SMF © 2006-2009, Simple Machines LLC

social bookmark this page