topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 12, 2024, 4:28 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Run on unhibernation  (Read 14716 times)

m0rph

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
IDEA: Run on unhibernation
« on: September 15, 2007, 10:27 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.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Run on unhibernation
« Reply #1 on: September 16, 2007, 06:51 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?

m0rph

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Re: IDEA: Run on unhibernation
« Reply #2 on: September 17, 2007, 12:23 PM »
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.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Run on unhibernation
« Reply #3 on: September 17, 2007, 12:59 PM »
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 ;)

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Run on unhibernation
« Reply #4 on: September 17, 2007, 01:37 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:
Run the program passed as argument on cumputer unhibernation
[Forum Topic] [.ahk Version] [.exe version]
« Last Edit: September 17, 2007, 01:40 PM by jgpaiva »

m0rph

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Re: IDEA: Run on unhibernation
« Reply #5 on: September 18, 2007, 01:59 AM »
That's great! Just what I needed and wanted.

Thank you so much. :D