Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > General MP3Car Discussion


Reply
 
Share Thread Tools Display Modes
Old 06-10-2005, 03:55 PM   #1
FLAC
 
evandude's Avatar
 
Join Date: Mar 2005
Location: Maine
Posts: 937
evandude is on a distinguished road
Run programs on hibernate/suspend and resume!

Hey, I thought I'd share this with people, since I have never seen a program that does this specifically...

A coworker of mine didn't have much to do this afternoon so he threw it together for me.

in suspend.ini you put the filenames (full path for stuff windows doesn't automatically recognize, like notepad) and it runs one program when suspending/hibernating, one when resuming.

works on XP on our work computers, no promises for anyone else.

Anyway, the general idea is you can use it for disabling/enabling your GPS if it doesn't like standby, or whatever else you want, so long as you can figure out some way to do it by the command line (perhaps use a macro recorder if it needs to be done via the gui)

http://www.rpi.edu/~desimn/suspendtrigger/index.html
__________________
But don't take it from me! here's a quote from a real, live newbie:
Quote: Originally Posted by Viscouse
I am learning buttloads just by searching on this forum. I've learned 2 big things so far: 1-it's been done before, and 2-if it hasn't, there is a way to do it.

eegeek.net

Last edited by evandude; 07-28-2005 at 09:27 PM.
evandude is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 06-10-2005, 04:36 PM   #2
Registered User
 
aoLhaTer's Avatar
 
Join Date: Mar 2003
Location: Rohnert Park, CA
Posts: 1,122
aoLhaTer
Cool stuff

Ive never had any problem with my GPS but sometimes USB devices dont work after hibernate
__________________
2004 G35 Coupe project
aoLhaTer is offline   Reply With Quote
Old 06-10-2005, 04:39 PM   #3
Raw Wave
 
Join Date: Jun 2004
Location: On the beach
Posts: 2,225
Gobby is on a distinguished road
Thanks evandude, handy for reconnecting my GPRS connection on resume :-)
Gobby is offline   Reply With Quote
Old 06-10-2005, 04:49 PM   #4
See me in my wet t-shirt.
 
stevieg's Avatar
 
Join Date: Aug 2003
Location: Warwickshire, UK
Posts: 1,887
stevieg is on a distinguished road
Thanks, this looks a handy application!
__________________
Ford Focus MP3 : www.stevieg.org/carpc Blog Updated 29 January 2009!
Car PC Status: Complete - Undergoing Software Redevelopment
stevieg is offline   Reply With Quote
Old 06-10-2005, 04:51 PM   #5
FLAC
 
Chairboy's Avatar
 
Join Date: Jan 2004
Posts: 1,380
Chairboy is on a distinguished road
I've been wanting this for a while! I can use this to start/stop/segment trip logging and more. Very cool!
__________________
Chrysler 300 - Fabricating
http://hallert.net/
Chairboy is offline   Reply With Quote
Old 06-10-2005, 05:02 PM   #6
Raw Wave
 
tj!2k4's Avatar
 
Join Date: Oct 2004
Posts: 3,294
tj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud of
nice, i've been wantin this as well =)
__________________
Dr. Ron Paul for President 2008

Hope for America - http://www.ronpaul2008.com

Who is Ron Paul? - Why do we need Ron Paul?

__________________
CarPC Newbs Start Here: All your questions answered, as if by E.S.P.
tj!2k4 is offline   Reply With Quote
Old 06-10-2005, 05:46 PM   #7
Raw Wave
 
tj!2k4's Avatar
 
Join Date: Oct 2004
Posts: 3,294
tj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud oftj!2k4 has much to be proud of
That program rocks.

I know you didn't write it, evandude, but would it be possible to get your coworker to make a couple of additions next time he, um, doesn't have much to do?

- support for multiple applications (so i don't have to run an ugly batch file to issue multiple commands)
- auto-minimize to SysTray on startup
- longer command lines
- the ability to use command lines with spaces in them

If it's not possible, then fine, this app is helpful enough. If it is possible, then that's even better. =)

Thanks again for posting this up.
__________________
Dr. Ron Paul for President 2008

Hope for America - http://www.ronpaul2008.com

Who is Ron Paul? - Why do we need Ron Paul?

__________________
CarPC Newbs Start Here: All your questions answered, as if by E.S.P.
tj!2k4 is offline   Reply With Quote
Old 06-10-2005, 05:54 PM   #8
Raw Wave
 
justintime's Avatar
 
Join Date: Apr 2005
Posts: 2,705
justintime is on a distinguished road
Thanks for sharing. So how does this work? You open the little app, and leave it open? or? I only get a small window with two fields, one for notepad and another for command.
__________________
2002 Honda CR-V
Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
Spent so far: $1105.90


Download the NEXUS Skin for Centrafuse
...or even Listen to my music
justintime is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 06-10-2005, 06:14 PM   #9
Para Laura
 
thanatos106's Avatar
 
Join Date: Nov 2004
Location: Miami Beach,FL U.S.A
Posts: 3,485
thanatos106 is on a distinguished road
Pretty good APP thanks for let us have it
thanatos106 is offline   Reply With Quote
Old 06-13-2005, 08:59 PM   #10
FLAC
 
evandude's Avatar
 
Join Date: Mar 2005
Location: Maine
Posts: 937
evandude is on a distinguished road
sorry for no replies, i forgot to subscribe to the thread.

justintime... yes, it just opens up a simple box with two lines.. one for what to run on standby/hibernate, and one with what to run on resume... you can put whatever you want in those boxes... full path would be required for anything windows doesn't automatically recognize.
and yes, you just leave it open.

well as for multiple apps, you can just have it launch a batch script that runs multiple apps and does whatever else you want. ugly, maybe, but it works at least.

I'll ask him about auto-minimize.

I would try putting the command line in quotation marks if you use spaces. I haven't tried it, but that's how you usually have to do it in the command prompt sometimes, so it seems like it might work for that as well.

he said he noticed a problem, that it will run the chosen standby program on standby the first time, but if you do standby again it won't run it. he said the RESUME program always worked fine... anyway, he claims to have taken care of it, i'll try to get a new version.

He said he doesn't want to spend lots of time on this thing, because he's got other personal programming projects he could be doing, but i bet he'd entertain some small upgrades to it on those days he's bored, so I'll see what I can do ;-)
__________________
But don't take it from me! here's a quote from a real, live newbie:
Quote: Originally Posted by Viscouse
I am learning buttloads just by searching on this forum. I've learned 2 big things so far: 1-it's been done before, and 2-if it hasn't, there is a way to do it.

eegeek.net

Last edited by evandude; 06-13-2005 at 09:07 PM.
evandude is offline   Reply With Quote
Old 06-19-2005, 01:48 PM   #11
Raw Wave
 
justintime's Avatar
 
Join Date: Apr 2005
Posts: 2,705
justintime is on a distinguished road
Thanks evandude. Works for me, except for the issue you mentioend above. Please post new version when possible. I have not been able to find ANY util that does this except yours. And I looked for hours!
__________________
2002 Honda CR-V
Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
Spent so far: $1105.90


Download the NEXUS Skin for Centrafuse
...or even Listen to my music
justintime is offline   Reply With Quote
Old 06-19-2005, 08:44 PM   #12
FLAC
 
evandude's Avatar
 
Join Date: Mar 2005
Location: Maine
Posts: 937
evandude is on a distinguished road
on friday he said he was about a half hour's work away from finishing a much better version. it includes minimizing to the system tray, fixing the little multiple standby glitch, and a more proper INI file which (I think) deals with spaces in filenames. may be other features, I don't know yet. so tomorrow I'll see if he's got anything more for everyone!

it really is amazing though... I am OK with C++, and I played with a little tutorial on windows API programming and from what he said, if I'd spent maybe a day or two finishing that tutorial, and did some quick browsing of the microsoft MSDN, I'd probably know enough to make this program myself. I was pretty surprised to realize that something like this (which previously seemed to be WAAAAY over my head, I assumed I'd need a couple more semesters of college computer science courses before I could even touch it) is really not that bad, if only I had a spare weekend to sit down and learn this stuff so I'm hoping I can find time for that... someday... would be nice to be able to whip up a cool program like this one in just a couple of hours, instead of trying to find someone to do it for me... I think if some more people did that, we'd have all sorts of cool little apps like this one.
__________________
But don't take it from me! here's a quote from a real, live newbie:
Quote: Originally Posted by Viscouse
I am learning buttloads just by searching on this forum. I've learned 2 big things so far: 1-it's been done before, and 2-if it hasn't, there is a way to do it.

eegeek.net

Last edited by evandude; 06-19-2005 at 08:50 PM.
evandude is offline   Reply With Quote
Old 06-20-2005, 08:46 AM   #13
FLAC
 
evandude's Avatar
 
Join Date: Mar 2005
Location: Maine
Posts: 937
evandude is on a distinguished road
http://www.rpi.edu/~desimn/suspendtrigger/index.html

his own page, with some description of the program and the download link for the newest version. enjoy!
__________________
But don't take it from me! here's a quote from a real, live newbie:
Quote: Originally Posted by Viscouse
I am learning buttloads just by searching on this forum. I've learned 2 big things so far: 1-it's been done before, and 2-if it hasn't, there is a way to do it.

eegeek.net
evandude is offline   Reply With Quote
Old 06-20-2005, 09:14 AM   #14
Terminal flasher
 
Sonicxtacy02's Avatar
 
Join Date: Sep 2004
Location: Woodbridge, VA
Posts: 6,307
Sonicxtacy02 has a spectacular aura aboutSonicxtacy02 has a spectacular aura about
ok now here's my golden question. How do i use this thing to disable/enable my pharos usb GPS. Devcon.exe doesnt appear to work as windows says it requires a restart to disable the device.
Sonicxtacy02 is offline   Reply With Quote
Old 06-20-2005, 09:22 AM   #15
FLAC
 
evandude's Avatar
 
Join Date: Mar 2005
Location: Maine
Posts: 937
evandude is on a distinguished road
someone else will have to help you with that one... in my case i'm planning to enable/disable the GPS through the GPS software itself, with some form of macro, since it can be done with a simple keystroke. otherwise, I have no idea, never tried it.
__________________
But don't take it from me! here's a quote from a real, live newbie:
Quote: Originally Posted by Viscouse
I am learning buttloads just by searching on this forum. I've learned 2 big things so far: 1-it's been done before, and 2-if it hasn't, there is a way to do it.

eegeek.net
evandude is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RESUME after hibernate frodoplayer paused until user input kuo FP Bug Reports 22 08-06-2006 04:57 PM
iguidance resume for usb gps receivers kuo PV Bugs 3 02-14-2005 01:48 PM
Appsthat don't resume right Cat Monkey General Hardware Discussion 2 12-01-2004 06:47 AM
ME to resume mp3 upon shutdown Kamakazie2 Media Engine 6 11-28-2004 03:20 PM
Trigger script/command on resume from hibernate? tejesh83 Software & Software Development 9 10-24-2003 08:05 PM



All times are GMT -5. The time now is 09:28 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics