The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

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

Reply
 
Thread Tools Display Modes
Old 04-14-2006, 06:26 PM   #1
Maximum Bitrate
 
tolisn's Avatar
 
Join Date: Dec 2003
Location: Greece
Vehicle: Mazda6
Posts: 617
My Photos: (0)
Running a VB program before WinXp shuts the computer off?????

When the power button on an XP based machine is pressed then winXP shuts down. Is there any way to auto run a VB program before win XP shuts down?
__________________
The road is long but we are getting there.
tolisn is offline   Reply With Quote
Sponsored Links
Old 04-14-2006, 07:24 PM   #2
My Village Called
0l33l's CarPC Specs
 
0l33l's Avatar
 
Join Date: Jul 2004
Location: Berkeley, CA
Vehicle: 1995 Lexus SC300 1997 Mazda Miata
Posts: 10,763
My Photos: (0)
There's a program that can do that.
__________________
PowerVoice v1 | NaviVoice Source
GammaControl v2.4
SKINbedder v3

1995 Lexus SC300 <-- Weekend Car
1997 Mazda Miata <-- Daily Driver
0l33l is offline   Reply With Quote
Old 04-15-2006, 12:31 PM   #3
Maximum Bitrate
 
tolisn's Avatar
 
Join Date: Dec 2003
Location: Greece
Vehicle: Mazda6
Posts: 617
My Photos: (0)
I've searched. All I can find is programs that monitor the "Start-Shutdown" sequence. None of them monitor the power button shutdown sequence. Any more ideas or tips?
__________________
The road is long but we are getting there.
tolisn is offline   Reply With Quote
Old 04-15-2006, 08:30 PM   #4
Mobile Impact Creator
 
reddeath30's Avatar
 
Join Date: Mar 2005
Location: Placentia, California
Vehicle: 1991 Toyota Celica GT Coupe
Posts: 1,132
My Photos: (0)
Quote: Originally Posted by tolisn
I've searched. All I can find is programs that monitor the "Start-Shutdown" sequence. None of them monitor the power button shutdown sequence. Any more ideas or tips?

What are you trying to accomplish by running a program when XP shuts down?
__________________
Mobile Impact
Highly innovative car computer multimedia/entertainment system software.
http://mobileimpact.biz.tm
reddeath30 is offline   Reply With Quote
Old 04-16-2006, 06:00 AM   #5
Maximum Bitrate
 
tolisn's Avatar
 
Join Date: Dec 2003
Location: Greece
Vehicle: Mazda6
Posts: 617
My Photos: (0)
I,m trying to run a program that will send a command to a servo so that it can close a custom motorized screen. This should be done a soon as the power button is pressed. Before the pc is shut done it should run this program and when the program finishes it should then shut down gracefully.
__________________
The road is long but we are getting there.
tolisn is offline   Reply With Quote
Old 04-16-2006, 09:30 AM   #6
Constant Bitrate
 
TheLandYacht's Avatar
 
Join Date: Oct 2005
Location: Austin, TX
Vehicle: 2005/Dodge/Sprinter
Posts: 218
My Photos: (0)
Here ya go.

http://www.pcworld.com/howto/article...,115628,00.asp
TheLandYacht is offline   Reply With Quote
Old 04-16-2006, 09:31 AM   #7
Mobile Impact Creator
 
reddeath30's Avatar
 
Join Date: Mar 2005
Location: Placentia, California
Vehicle: 1991 Toyota Celica GT Coupe
Posts: 1,132
My Photos: (0)
Quote: Originally Posted by tolisn
I,m trying to run a program that will send a command to a servo so that it can close a custom motorized screen. This should be done a soon as the power button is pressed. Before the pc is shut done it should run this program and when the program finishes it should then shut down gracefully.

Do you have this servo program yet?
__________________
Mobile Impact
Highly innovative car computer multimedia/entertainment system software.
http://mobileimpact.biz.tm
reddeath30 is offline   Reply With Quote
Old 04-16-2006, 11:44 AM   #8
Constant Bitrate
 
Join Date: Nov 2005
Posts: 215
My Photos: (0)
Quote: Originally Posted by tolisn
I,m trying to run a program that will send a command to a servo so that it can close a custom motorized screen. This should be done a soon as the power button is pressed. Before the pc is shut done it should run this program and when the program finishes it should then shut down gracefully.

Do you have your power button set to shutdown or suspend/hibernate? It is easy to intercept suspend/hibernate calls and deny them, run what you would like to and initiate your own shutdown when your process is done. For some reason they don't make shutdown that easy.
whodwho is offline   Reply With Quote
Old 04-16-2006, 11:59 AM   #9
Maximum Bitrate
 
tolisn's Avatar
 
Join Date: Dec 2003
Location: Greece
Vehicle: Mazda6
Posts: 617
My Photos: (0)
Hey guys thanks for all the feedback

@TheLandYacht. I tried this outr because it seems a simple solution. It did not work for me. I made a program in VB the would beep once you run it but did not succed in invoking it during shutdown

@reddeath: The final servo program is not ready yet. I will be using a phidget servo controller. Probably I will modify one of the examples found here (btw. I'm not a programmer so I'm taking this very slowly)
http://www.phidgetsusa.com/tutorials...Controller.asp.
My need is actually very simple. Run the program that will send a set value to the servo so it can retract my screen.

@whodwho: I have the power button set to shutdown the computer since my custom SD controller completely turns off the system (no power drain at all).
__________________
The road is long but we are getting there.
tolisn is offline   Reply With Quote
Old 04-16-2006, 12:09 PM   #10
Constant Bitrate
 
Join Date: Nov 2005
Posts: 215
My Photos: (0)
Quote: Originally Posted by tolisn
Hey guys thanks for all the feedback
@whodwho: I have the power button set to shutdown the computer since my custom SD controller completely turns off the system (no power drain at all).

Ok so I got passed the shutdown issue mentioned above. I can give you something to try in a couple

FYI, don't know if you know about the hibernate function, it takes an image of what is in memory and writes it to a file and no power needed. it boots much quicker and back where you left off. I have multible laptop drives that I use for different purposes and I use the hibernate and can switch to a different drive and boot where I left off last on each of them.
whodwho is offline   Reply With Quote
Sponsored Links
Old 04-16-2006, 12:13 PM   #11
Newbie
 
Join Date: Apr 2006
Posts: 1
My Photos: (0)
The solution you are looking for will be found in the Windows XP Policy Settings:

Go To Run: Type in MMC, hit enter

Console 1 appears, select file, add/remove snap in

Click Add, then select Group Policy Object Editor, add finish etc...

Under Console Root goto: Local Computer Policy -> Computer Configuration -> Windows Settings -> Scripts -> Shutdown

This is where you will add your VB script.

As long as Windows recieves the command to initiate a shut down, it will always include scripts in this locaiton.

Hope this helps....
AZMOUSE is offline   Reply With Quote
Old 04-16-2006, 12:38 PM   #12
Maximum Bitrate
 
tolisn's Avatar
 
Join Date: Dec 2003
Location: Greece
Vehicle: Mazda6
Posts: 617
My Photos: (0)
Quote: Originally Posted by AZMOUSE
The solution you are looking for will be found in the Windows XP Policy Settings:

Go To Run: Type in MMC, hit enter

Console 1 appears, select file, add/remove snap in

Click Add, then select Group Policy Object Editor, add finish etc...

Under Console Root goto: Local Computer Policy -> Computer Configuration -> Windows Settings -> Scripts -> Shutdown

This is where you will add your VB script.

As long as Windows recieves the command to initiate a shut down, it will always include scripts in this locaiton.

Hope this helps....

This one looks like its functioning exactly as I need it. Thank you all
__________________
The road is long but we are getting there.
tolisn is offline   Reply With Quote
Old 04-17-2006, 04:59 PM   #13
Variable Bitrate
 
nameeri's Avatar
 
Join Date: Mar 2006
Location: SoCal
Vehicle: 2003 Honda Civic
Posts: 308
My Photos: (1)
Frodo also wrote this app. You can read about it here and get it

http://www.mp3car.com/vbulletin/showthread.php?t=53753
__________________
----------------------------------------------
Civiputer: Dont have one anymore, but here is what is used to be!
nameeri is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
power problems while car is running.. TimW General Hardware Discussion 28 03-18-2006 09:11 PM
Computer running constatly? Scruit Power Supplies 8 08-06-2003 02:49 AM
How long can an opus power the computer running without Durango running?? nolmscheid Power Supplies 9 11-01-2002 11:21 AM
My hardware/Software computer control system - Wish list/feedback - Easy power off DarkWolf General Hardware Discussion 22 08-13-2001 01:42 PM
controlling computer running winamp with pda anothamp3frk Classified Archive 6 01-23-2001 12:57 AM


All times are GMT -5. The time now is 04:30 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics