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.
|
04-14-2006, 06:26 PM
|
#1
|
|
Maximum Bitrate
Join Date: Dec 2003
Location: Greece
Vehicle: Mazda6
Posts: 617
|
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.
|
|
|
04-14-2006, 07:24 PM
|
#2
|
|
My Village Called
Join Date: Jul 2004
Location: Berkeley, CA
Vehicle: 1995 Lexus SC300 1997 Mazda Miata
Posts: 10,763
|
There's a program that can do that. 
|
|
|
04-15-2006, 12:31 PM
|
#3
|
|
Maximum Bitrate
Join Date: Dec 2003
Location: Greece
Vehicle: Mazda6
Posts: 617
|
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.
|
|
|
04-15-2006, 08:30 PM
|
#4
|
|
Mobile Impact Creator
Join Date: Mar 2005
Location: Placentia, California
Vehicle: 1991 Toyota Celica GT Coupe
Posts: 1,132
|
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
|
|
|
04-16-2006, 06:00 AM
|
#5
|
|
Maximum Bitrate
Join Date: Dec 2003
Location: Greece
Vehicle: Mazda6
Posts: 617
|
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.
|
|
|
04-16-2006, 09:30 AM
|
#6
|
|
Constant Bitrate
Join Date: Oct 2005
Location: Austin, TX
Vehicle: 2005/Dodge/Sprinter
Posts: 218
|
|
|
|
04-16-2006, 09:31 AM
|
#7
|
|
Mobile Impact Creator
Join Date: Mar 2005
Location: Placentia, California
Vehicle: 1991 Toyota Celica GT Coupe
Posts: 1,132
|
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
|
|
|
04-16-2006, 11:44 AM
|
#8
|
|
Constant Bitrate
Join Date: Nov 2005
Posts: 215
|
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.
|
|
|
04-16-2006, 11:59 AM
|
#9
|
|
Maximum Bitrate
Join Date: Dec 2003
Location: Greece
Vehicle: Mazda6
Posts: 617
|
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.
|
|
|
04-16-2006, 12:09 PM
|
#10
|
|
Constant Bitrate
Join Date: Nov 2005
Posts: 215
|
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.
|
|
|
04-16-2006, 12:13 PM
|
#11
|
|
Newbie
Join Date: Apr 2006
Posts: 1
|
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....
|
|
|
04-16-2006, 12:38 PM
|
#12
|
|
Maximum Bitrate
Join Date: Dec 2003
Location: Greece
Vehicle: Mazda6
Posts: 617
|
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.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:30 PM.
|
|