OK. I got this working nicely, so I thought I would post my GML file in case anyone is interested. One condition of downloading this is that you don't laugh at the code (and I'll be listening.) My only experience with programing is self taught Excel macros.
What is does: When Girder sees that a DVD is playing, it will activate each light that is already on by sending a redundant On command, and dim each light consecutavely (I only have two lights to dim.) It also brightens the lights when the video is paused or Zoomplayer is closed. For some reason I can't get Girder to see that video has stopped, but I am still working on that.
What you'll need: You'll need Girder 3.2, and the DVDspy and Firecracker pluggin. I am using Zoomplayer, but you can easily change the event code from Zoomplayer.state to something else to detect when video is playing or paused.
How it works: My normal light controls are in X10>Mantle or Stand (Mantle and Stand are my two lights.) In each folder there is a On and Off command using the X10 plugin, and a variable setting that lets Girder know which light is on or off. In the Zoomplayer-Functions folder there is a multigroup called control lights that has the DVDspy event and the script that actually dims and brightens the lights. Lastly in Zoomplyer-Functions there is a ZoomplayerPower folder taht contains the Off multigroup which also contains a script to brighten any still dimmed lights on exit.
Anyway, I hope other people can make use of this. I think it is the best I can do with the Firecracker setup. I guess a Powerlinc controler would allow me to dim all the lights at once and would get states directly from the lights, but I would have to invest in new equipment.
Thanks,
MR
http://michaelrothberg.home.comcast.net/HTPC.GML