|
Slink-e / CDJ Discussion Archive #11 Command line control of CDJ from my StargatePosted By: Mike Hardy <mhardy@h...> I have been controlling CDJ from my Stargate Home Automation Controller and I am looking for Ideas on how to get more capability and control. I am using Microsoft’s Windows Scripting Host (WSH) to send the Keys to the application from a command line. I have the ability to send an ASCII command from the Stargate’s Winevm application that will then run a WSH script to CDJ Limitations: I am only able to script the keyboard commands. I am not able to select the search tab from a keyboard command. I cannot select the user defined buttons with a keyboard command. I cannot trigger a map from a keyboard command. The Winevm application and CDJ are on the same PC. I don’t want to use an IR zone to trigger any of the Map events. I’d rather have a direct command line if possible. I have the following VBS script working that send the appropriate keyboard commands to CDJ cdjplay.vbs set WshShell = CreateObject("WScript.Shell") WshShell.AppActivate "cdj" WScript.Sleep 1000 WshShell.SendKeys "%p" WshShell.SendKeys "p" WScript.Sleep 500 cdjstop.vbs set WshShell = CreateObject("WScript.Shell") WshShell.AppActivate "cdj" WScript.Sleep 1000 WshShell.SendKeys "%p" WshShell.SendKeys "S" WshShell.SendKeys "~" WScript.Sleep 500 Cdjpause.vbs set WshShell = CreateObject("WScript.Shell") WshShell.AppActivate "cdj" WScript.Sleep 1000 WshShell.SendKeys "%p" WshShell.SendKeys "a" WshShell.SendKeys "~" WScript.Sleep 500 Cdjskipf.vbs set WshShell = CreateObject("WScript.Shell") WshShell.AppActivate "cdj" WScript.Sleep 1000 WshShell.SendKeys "%p" WshShell.SendKeys "f" WScript.Sleep 500 Cdjskipb.vbs set WshShell = CreateObject("WScript.Shell") WshShell.AppActivate "cdj" WScript.Sleep 1000 WshShell.SendKeys "%p" WshShell.SendKeys "b" WScript.Sleep 500 I can even load a play list by sending the keystrokes to open a play list and type in the name. Jimmy.vbs set WshShell = CreateObject("WScript.Shell") WshShell.AppActivate "cdj" WScript.Sleep 1000 WshShell.SendKeys "%f" WshShell.SendKeys "o" WshShell.SendKeys "jimmy.pla" WshShell.SendKeys "~" WScript.Sleep 500 I then invoke any of the above by send the run application command to execute the .vbs in the &&wscript.exe cdjplay.vbs Questions Is there a command line interface to CDJ so that I can trigger the Map events without using IR? Can I use WSH to send commands to the Slink server to control CDJ? Can I create Library searches via a command line? Can I do this without adding even more complexity? Thanks in Advance for the help. Mike Responses To This Message
Slink-e / CDJ Discussion Archive #11 is maintained by slinke-bbs-owner@nirvis.com with WebBBS 3.21. |