|
 |
06-21-2004, 05:23 PM
|
#1
|
|
MySQL Error
Join Date: Sep 2003
Location: Beach City, Socal
Posts: 4,042
|
VB6 help: Kill Winamp VIS/Video
Hi all, I need a little help on how to kill/close winamp video/visulizations windows if it is currently running. I was able to close winamp all together but not just VIS or Video windows.
I have a hard time getting the VIS and Video window caption so the app can close it. Instead, it just close winamp which I don't want.
The purpose? I am currently writing a small apps that monitor the status of a serial port to restrict some applications (video/moving image) from running or close it if it is running. This is for legal issue of having video playing within the driver view (illegal in CA and most states, and will be illegal everywhere).
With this application, you can show the COPS that the video can't be play if the hand brake is NOT engage. Of course there is always a switch to override the hand brake if you are in a long trip.
Thanks
|
|
|
|
|
|
Advertisement
|
Sponsored links
|
06-21-2004, 06:21 PM
|
#2
|
|
Constant Bitrate
Join Date: May 2004
Location: Sweden
Posts: 151
|
|
|
|
06-22-2004, 02:48 PM
|
#3
|
|
MySQL Error
Join Date: Sep 2003
Location: Beach City, Socal
Posts: 4,042
|
Cool Thanks
|
|
|
06-22-2004, 03:02 PM
|
#4
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
Quote: Originally Posted by MatrixPC
Hi all, I need a little help on how to kill/close winamp video/visulizations windows if it is currently running. I was able to close winamp all together but not just VIS or Video windows.
I have a hard time getting the VIS and Video window caption so the app can close it. Instead, it just close winamp which I don't want.
The purpose? I am currently writing a small apps that monitor the status of a serial port to restrict some applications (video/moving image) from running or close it if it is running. This is for legal issue of having video playing within the driver view (illegal in CA and most states, and will be illegal everywhere).
With this application, you can show the COPS that the video can't be play if the hand brake is NOT engage. Of course there is always a switch to override the hand brake if you are in a long trip.
Thanks
Seems like this might be easier/cleaner if done from the hosting application.
|
|
|
06-22-2004, 04:15 PM
|
#5
|
|
Maximum Bitrate
Join Date: Nov 2003
Location: NC
Posts: 604
|
hmm maybe use the winamp API and write a plugin to do this.
|
|
|
06-22-2004, 04:19 PM
|
#6
|
|
Phat Boy
Join Date: Sep 2003
Location: AZ
Posts: 1,007
|
how would the brake be wired into serial port? I think the easiest way would be through the BRAKE LED on your dashboard. When it gets current, maybe that could operate as a switch?
__________________
My Carputer! (More Car Pics at the end)
2 Kicker Comp 10"
Epia M-9000, 256 MB DDR, 120 Gig HD
Lilliput 7" VGA Touchscreen
Check it out?!
|
|
|
06-22-2004, 04:45 PM
|
#7
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
Quote: Originally Posted by Pudge
how would the brake be wired into serial port? I think the easiest way would be through the BRAKE LED on your dashboard. When it gets current, maybe that could operate as a switch?
http://www.mp3car.com/vbulletin/show...=simple+serial
|
|
|
06-22-2004, 04:47 PM
|
#8
|
|
Phat Boy
Join Date: Sep 2003
Location: AZ
Posts: 1,007
|
Seems to complicated for me, but great if it works for you, wouldn't current on the LED be an easier switch method?
__________________
My Carputer! (More Car Pics at the end)
2 Kicker Comp 10"
Epia M-9000, 256 MB DDR, 120 Gig HD
Lilliput 7" VGA Touchscreen
Check it out?!
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
06-22-2004, 07:41 PM
|
#9
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
Quote: Originally Posted by Pudge
Seems to complicated for me, but great if it works for you, wouldn't current on the LED be an easier switch method?
You've got a CarPC and hooking up a relay to your COM port seems complicated? If you want to tap a dash LED and just plug it in to a COM or Parallel port, go for it. The relay method is simple and provides isolation from any stray voltages that might be lurking around your car.
In any case, the circuit(s) in that post are the ones that Matrix is building his software for. Truly any circuit that triggers an input line on the serial port would work. It's hard to imagine one with fewer components than 1.
|
|
|
06-23-2004, 12:26 PM
|
#10
|
|
MySQL Error
Join Date: Sep 2003
Location: Beach City, Socal
Posts: 4,042
|
As of now I am not using any host application (MediaCar, FrodoPlayer, MediaEngine nor VOICE). I am just using Winamp, WinDVD/Win Media Player, and GPS stuff. I want this application to run as a service or just like any application so that I have control what applications to run or not to run at the OS level. It is much easier to have it code directly in the host application because the author have complete control over which and when to run a particular player. But this is limit to the host player only.
Quote: Originally Posted by Pudge
Seems to complicated for me, but great if it works for you, wouldn't current on the LED be an easier switch method?
I am not sure how you get the puter in the car but wiring 1 relay doesn't seem that hard nor complicated than take off the dashboard to look for the Ebrake light.
The Ebrake light is connect directly to the batt (with fuse of course) for positive and the ebrake and/or brake reservor for negative (that is how it work in my 2 toyotas).
As for setting up the relay for comport, refer to rando post above for the wiring he has. For trigger(+) wire directly to the batt w/fuse, and tap the ebrake signal to the trigger(-). To bypass, get a toggle switch and wire one side to DTR and the other side to DSR. When switch is on, ebrake has no effect and when switch is off, ebrake take over.
|
|
|
06-23-2004, 12:45 PM
|
#11
|
|
Phat Boy
Join Date: Sep 2003
Location: AZ
Posts: 1,007
|
I'll have to find the signal trigger then, sounds fairly simple, thanks.
__________________
My Carputer! (More Car Pics at the end)
2 Kicker Comp 10"
Epia M-9000, 256 MB DDR, 120 Gig HD
Lilliput 7" VGA Touchscreen
Check it out?!
|
|
|
06-23-2004, 12:56 PM
|
#12
|
|
MySQL Error
Join Date: Sep 2003
Location: Beach City, Socal
Posts: 4,042
|
The easiest place to find the ebrake signal is at the ebrake itseft. if you look under the handle, there will be a pin switch. When the ebrake handle is release/down, it press the switch down (no contact to the car frame (-)). When the ebrake is engage/up, the switch is release thus make contact.
Just tap to the wire at the end of the switch.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| 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 02:30 AM.
| |