Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PlayDVD
#1
Working on some stuff to automagically play movies when disk is inserted...

My function "PlayDVD" does a few things
1. Launches VideoLan VLC media player http://www.videolan.org/ command line to the root menu of the disk
2. Turns on the projector via RS232 communication using http://www.quickmacros.com/forum/showthr...6#pid22586
3. Dims the lights using RS232 to a Parallax Propeller microcontroller wired up to logic controlled dimmer switches.

Using Default Programs Editor http://defaultprogramseditor.com/ to generate a registry file, I was able to add the above QM function to the AutoPlay options. Then I just went into AutoPlay settings in control panel and selected the new item.

Below is the registry file created by Default Programs Editor.exe (This could be converted to a QM script or just saved as a .reg file and ran by QM...or just run the .reg file to merge:
Code:
Copy      Help
Windows Registry Editor Version 5.00

; Set Chosen Autoplay Handler
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\PlayDVDMovieOnArrival]

; Add Autoplay Handler
[HKEY_CURRENT_USER\Software\Classes\qmcl.exe_autoplay_handler\shell\QMPlayDVD_verb\command]
@="\"c:\\program files (x86)\\quick macros 2\\qmcl.exe\" M \"PlayDVD\""
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer\AutoplayHandlers\Handlers\QMPlayDVD_using_qmcl.exe]
"Action"="QMPlayDVD"
"DefaultIcon"="C:\\Windows\\system32\\imageres.dll,18"
"InvokeProgID"="qmcl.exe_autoplay_handler"
"InvokeVerb"="QMPlayDVD_verb"
"Provider"="qmcl.exe"

; Add Autoplay Handler Option
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer\AutoplayHandlers\EventHandlers\PlayDVDMovieOnArrival]
"QMPlayDVD_using_qmcl.exe"=""

Thought I'd share ;-)

P.S. I'll post the VLC command line and my QM RS232 script later!


Forum Jump:


Users browsing this thread: 1 Guest(s)