Functions that talk to the application that hosts the player as an ActiveX control, or if running as an EXE this will send commands to the Windows shell.
Methods
send(commandstring) |
Send a string to the application. This will be received as an event called 'Receive' in the host application. |
execute(commandString, paramString, commandIsProgId) |
Sends the 'commandString' to the Windows shell with optional parameters in paramString. For security reasons, this function is not available when running in a web browser. If you set commandIsProgId to true, you can launch a utility by it's ProgID, e.g. 'WMP.DVD' with parameter 'play' would play a DVD in Windows Media Player. |
Examples
shell.send("hello from a DX Studio document!");
shell.execute("notepad.exe"); // launches notepad application (if running as an EXE)
shell.execute("http://www.dxstudio.com/"); // launches a browser at www.dxstudio.com (if running as an EXE)
shell.execute("notepad.exe","d:\\mydoc.txt"); // launches notepad application and opens d:\\mydoc.txt
shell.execute("c:\\"); // opens a file explorer for the c:\ folder
shell.execute("WMP.DVD","play",true); // plays a DVD in media player
Remarks
See Also


