View Poll Results: Is this working for you?

Voters
2. You may not vote on this poll
Page 1 of 5 12345 LastLast
Results 1 to 10 of 44

Thread: Run command when power button pushed

  1. #1
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,660

    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 Attached Files
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  2. #2
    MGD
    MGD is offline
    FLAC
    Auto Apps:loading...
    MGD's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles
    Posts
    1,731
    There you go, this should help ya.
    http://www.tutorial5.com/content/view/157/47/

  3. #3
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,660
    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.
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  4. #4
    Maximum Bitrate Injector's Avatar
    Join Date
    Mar 2005
    Location
    Rockledge, FL
    Posts
    525
    do you have this folder in the registry?
    HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\Scripts\Logoff

  5. #5
    Maximum Bitrate Injector's Avatar
    Join Date
    Mar 2005
    Location
    Rockledge, FL
    Posts
    525
    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

  6. #6
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,660
    Quote Originally Posted by Injector View Post
    do you have this folder in the registry?
    HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\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.
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  7. #7
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,660
    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.
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  8. #8
    Maximum Bitrate Injector's Avatar
    Join Date
    Mar 2005
    Location
    Rockledge, FL
    Posts
    525
    but you an tell it to run a program as well, it's in the options box

  9. #9
    Newbie
    Join Date
    Jan 2009
    Posts
    44
    i looking into that for a while but i'm having a hard time finding one that work's

  10. #10
    Maximum Bitrate Injector's Avatar
    Join Date
    Mar 2005
    Location
    Rockledge, FL
    Posts
    525
    have you tried making a batch file?

Page 1 of 5 12345 LastLast

Similar Threads

  1. 2008 Yaris 4 Door Sedan PC Install
    By rizaydog in forum Show off your project
    Replies: 55
    Last Post: 05-21-2009, 08:03 AM
  2. Utility to change behavior of ATX power button (e.g.: launch an app)
    By justintime in forum Software & Software Development
    Replies: 83
    Last Post: 05-08-2009, 05:45 PM
  3. 2007 Ford Fusion Carputer (version 2.0)
    By FusionFanatic in forum Show off your project
    Replies: 43
    Last Post: 04-20-2009, 05:56 PM
  4. DC-DC Car Power for Mac Mini
    By MikeH in forum MacCar
    Replies: 53
    Last Post: 02-19-2005, 01:13 PM
  5. I want to add a power button on my dash. Which can i use?
    By Sonicxtacy02 in forum General Hardware Discussion
    Replies: 2
    Last Post: 10-25-2004, 04:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •