Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development


View Poll Results: Is this working for you?
Yes, I have Windows XP home 1 50.00%
No, I have Windows XP home 0 0%
Yes, I have Windows XP Pro 1 50.00%
No, Windows XP Pro 0 0%
Yes, I have Windows Vista 0 0%
No, I have Windows Vista 0 0%
Voters: 2. You may not vote on this poll

Reply
 
Share Thread Tools Display Modes
Old 05-23-2009, 08:59 AM   #1
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,548
ThunderStick is on a distinguished road
Thumbs up Run command when power button pushed


I want to be able to execute a script when my power button is pushed so that my computer will be able to run an update before it powers down. I would like to be able to keep the computer from going through the shutdown process until the script has completed running.

ANy help with this is appreciated


CLICK HERE
SOLUTION updated 14-JUN-2009
Place a shortcut to it in your startup folder

USE THE ATTACHED PROGRAM TO:
-Intercept Windows Shutdown
-Customizable Shutdown Options (Logoff, Hibernate, Forced Shutdown, Standby...ETC)
-Close Ride Runner
-Run up to 4 programs or scripts one after another
-Disable mouse and keyboard
-turn off monitor as soon as power button is pushed

README
Open the RUNNER.INI file and enter the names of the programs you wish this program to run.
Starting with Program1.
It will not run the next program until the previous one has closed or finished.
=====================
EXAMPLE OF RUNNER.INI
=====================

[PROGRAM1]
WINDOWNAME= "NAME DISPLAYED IN DISPLAY BOX WHEN WAITING FOR PROGRAM 1. CAN BE ANYTHING"
EXEPATH= "PROGRAM 1 EXECUTABLE AND PATH" "EXAMPLE C:\WINDOWS\NOTEPAD.EXE"

[PROGRAM2]
WINDOWNAME= "NAME DISPLAYED IN DISPLAY BOX WHEN WAITING FOR PROGRAM 2. CAN BE ANYTHING"
EXEPATH= "PROGRAM 2 EXECUTABLE AND PATH" "EXAMPLE C:\WINDOWS\NOTEPAD.EXE"

[PROGRAM3]
WINDOWNAME= "NAME DISPLAYED IN DISPLAY BOX WHEN WAITING FOR PROGRAM 3. CAN BE ANYTHING"
EXEPATH= "PROGRAM 3 EXECUTABLE AND PATH" "EXAMPLE C:\WINDOWS\NOTEPAD.EXE"

[PROGRAM4]
WINDOWNAME= "NAME DISPLAYED IN DISPLAY BOX WHEN WAITING FOR PROGRAM 4. CAN BE ANYTHING"
EXEPATH= "PROGRAM 4 EXECUTABLE AND PATH" "EXAMPLE C:\WINDOWS\NOTEPAD.EXE"

[RR]
USINGIT= "SHUTDOWN Ride Runner properly if it is running (YES OR NO)"

[MONITORCONTROL]
USEIT= "Turn off monitor when shutting down (YES OR NO)"
OFFDELAY= "Turn off monitor delay in seconds"
BACKON= "Turn on monitor when RUNNER is done (YES OR NO)"
BACKONDELAY= "Turn on monitor delay in seconds"

[OPTIONS]
BLOCKMOUSEANDKEYBOARDINPUT= "Disables your mouse a keyboard until RUNNER is finished (YES OR NO)"
SPEECH= "Spoken Status of RUNNER (YES OR NO)" (SAPI required)
SHUTDOWNWHENDONE= "Shutdown computer when RUNNER completes (YES OR NO)"
SHUTDOWNOPTION= "Options for method of shutdown"

/[SHUTDOWN OPTIONS]
0 = Logoff
1 = Shutdown
2 = Reboot
4 = Force
8 = Power down
16= Force if hung
32= Standby
64= Hibernate

PB Intercept No Longer Needed
Attached Files
File Type: zip Runner.zip (313.6 KB, 36 views)

Last edited by ThunderStick; 06-28-2009 at 11:28 AM..
ThunderStick is offline   Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 05-23-2009, 09:58 AM   #2
MGD
FLAC
 
MGD's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,644
MGD is on a distinguished road
There you go, this should help ya.
http://www.tutorial5.com/content/view/157/47/
MGD is offline   Reply With Quote
Old 05-25-2009, 09:38 AM   #3
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,548
ThunderStick is on a distinguished road
Oh yeah forgot to mention
Im running XP HOME
there is no group policy editor for the home edition.
ANy other ideas woud be greatly appreciated.
ThunderStick is offline   Reply With Quote
Old 05-25-2009, 01:02 PM   #4
Maximum Bitrate
 
Injector's Avatar
 
Join Date: Mar 2005
Location: Rockledge, FL
Posts: 517
Injector is on a distinguished road
do you have this folder in the registry?
HKEY_CURRENT_USER\Software\Policies\Microsoft\Wind ows\System\Scripts\Logoff
Injector is offline   Reply With Quote
Old 05-25-2009, 01:07 PM   #5
Maximum Bitrate
 
Injector's Avatar
 
Join Date: Mar 2005
Location: Rockledge, FL
Posts: 517
Injector is on a distinguished road
or you can download poweroff
http://users.telenet.be/jbosman/applications.html
and configure it to run your script once the process of your frontend ends

that way poweroff will sit in the system tray when the frontend process ends poweroff will run your script and then shutdown the pc
Injector is offline   Reply With Quote
Old 05-26-2009, 09:55 AM   #6
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,548
ThunderStick is on a distinguished road
Quote: Originally Posted by Injector View Post
do you have this folder in the registry?
HKEY_CURRENT_USER\Software\Policies\Microsoft\Wind ows\System\Scripts\Logoff

No I dont have this in the registry, checked this.

sorry to say cant get power off to stop the shutdown process. Shutdown just kills power off.
ThunderStick is offline   Reply With Quote
Old 05-26-2009, 10:38 PM   #7
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,548
ThunderStick is on a distinguished road
Quote: Originally Posted by ThunderStick View Post
sorry to say cant get power off to stop the shutdown process. Shutdown just kills power off.

Correction power off does not work from a button press it simply shutdown your PC when the program you are running closes.
ThunderStick is offline   Reply With Quote
Old 05-26-2009, 11:13 PM   #8
Maximum Bitrate
 
Injector's Avatar
 
Join Date: Mar 2005
Location: Rockledge, FL
Posts: 517
Injector is on a distinguished road
but you an tell it to run a program as well, it's in the options box
Injector is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 05-26-2009, 11:51 PM   #9
Newbie
 
Join Date: Jan 2009
Posts: 26
moreause is an unknown quantity at this point
i looking into that for a while but i'm having a hard time finding one that work's
moreause is offline   Reply With Quote
Old 05-27-2009, 12:35 AM   #10
Maximum Bitrate
 
Injector's Avatar
 
Join Date: Mar 2005
Location: Rockledge, FL
Posts: 517
Injector is on a distinguished road
have you tried making a batch file?
Injector is offline   Reply With Quote
Old 05-27-2009, 10:58 PM   #11
Mod - Driveline forum
 
ClockWorK's Avatar
 
Join Date: Oct 2003
Location: Michigan
Posts: 80
ClockWorK is on a distinguished road
I think I can write a program to do this. I just need a couple free hours. I'll try to look into it tomorrow.

(to be clear, I mean to detect the power button being pressed and run something, delaying the shutdown. not waiting for a process to end.)
ClockWorK is offline   Reply With Quote
Old 05-28-2009, 07:30 AM   #12
Newbie
 
Join Date: Jan 2009
Posts: 26
moreause is an unknown quantity at this point
i just redid some test with the lastchance program

it's not perfect but it seem to work

but

when it install it say a dll could not be installed
it seem than you can only add program not remove because of this
sometime the pc was not stoping long enough
so my first line of command is a delayed shut down shutdown -s -f -t 20

and it will wait around 20 sec a tried 30 but i will shutdown anyway

i still have to do some test
moreause is offline   Reply With Quote
Old 05-28-2009, 10:05 AM   #13
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,548
ThunderStick is on a distinguished road
Quote: Originally Posted by Injector View Post
have you tried making a batch file?

Tried a batch file but am unable to launch it at shutdown and keep the computer from shutting it down. This is my actual problem. I think I can figure out how to launch a command after the shutdown sequence has started. But keeping windows from closing the program before it is completed is another story.
ThunderStick is offline   Reply With Quote
Old 05-28-2009, 11:30 AM   #14
Maximum Bitrate
 
Injector's Avatar
 
Join Date: Mar 2005
Location: Rockledge, FL
Posts: 517
Injector is on a distinguished road
try adding "shutdown -a" to the batch
Injector is offline   Reply With Quote
Old 05-30-2009, 11:01 AM   #15
One Sharp Cheddar
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,548
ThunderStick is on a distinguished road
giving up on this whole idea of trying to run a script in windows xp home.
after doing some rigorous searching through google, it has been tried and failed many many times. It's just not possible.
ThunderStick 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
2008 Yaris 4 Door Sedan PC Install rizaydog Show off your project 55 05-21-2009 08:03 AM
Utility to change behavior of ATX power button (e.g.: launch an app) justintime Software & Software Development 83 05-08-2009 05:45 PM
2007 Ford Fusion Carputer (version 2.0) FusionFanatic Show off your project 43 04-20-2009 05:56 PM
DC-DC Car Power for Mac Mini MikeH MacCar 53 02-19-2005 01:13 PM
I want to add a power button on my dash. Which can i use? Sonicxtacy02 General Hardware Discussion 2 10-25-2004 04:17 PM



All times are GMT -5. The time now is 08:48 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
"VaultWiki" powered by VaultWiki v2.5.2.
Copyright © 2008 - 2009, Cracked Egg Studios.Ad Management by RedTyger
Message Board Statistics