New version V0.7.2.2 is released. (See post #1 to download).
Change log since V0.6.2.2:
- Exiting the Script Client now shuts down all running scripts.
- If you exit the script client, and restart it, scripts won't be recompiled anymore (unless they have been modified).
- Plugin API has been renamed for consistency reasons:
hs.Plugin("Script Connector").ExecRemoteSub( scriptClient, scriptFile, param )
object = hs.Plugin("Script Connector").ExecRemoteFunc( scriptClient, scriptFile, param )
- New plugin API added, that returns a string array with the list of connected Script Clients
string[] = hs.Plugin("ScriptConnector").ClientList
- New #USING directive available within scripts to use other namespaces.
- The hs object is now global and available within the whole scripts. In previous versions, the hs object was only available to the main class, and it was necessary to pass it as a variable to other classes within the script.
- New sh global object (ScriptHost) available within scripts. The sh object API is the following:
sh.SetContext( keyString, paramObject ) <-- Save an object within the script client
object = sh.GetContext( keyString) <-- Get an object previously saved
boolean = sh.ExecLocalSub( scriptPath, paramObject )
object = sh.ExecLocalFunc( scriptPath, paramObject )
boolean = sh.ExecRemoteSub( scriptClient, scriptPath, paramObject )
object = sh.ExecRemoteFunc( scriptClient, scriptPath, paramObject )
string [] = sh.ClientList <-- List of registered Script clients as a string array
string = sh.ClientName <-- Name of the running Script Client
- New Distributed Media Player remote script, in the Scripts/Media directory
The Distributed Media Player scripts currently only work with VLC Media Player (ie you must have VLC 0.8.6 installed on remote computers). There are stub control scripts for Windows Media Player and WinAmp, but they are not currently implemented.
The Distributed Media Player scripts allow you to play music and video files on any remote computer with the Script Client running and VLC installed. You can take control of the remote media player from any other computer with the Script Client Running.
Run the script media/control.cs to launch the Distributed Media Player control Window from any computer.
Edit the GetVideoDirectory.cs and GetMusicDirectory.cs scripts to change initial media directories on each remote computers (these directories default to Documents/My Music and My Videos).
Edit the GetMusicPlayerType.cs and GetVideoPlayerType.cs scripts to allow or forbid playing remote media on each computer.
You can also use the Distributed Media Player features from any HomeSeer script or event (I mean without using the Distributed Media Control Window Interface). Ask me for more info about this.
Change log since V0.6.2.2:
- Exiting the Script Client now shuts down all running scripts.
- If you exit the script client, and restart it, scripts won't be recompiled anymore (unless they have been modified).
- Plugin API has been renamed for consistency reasons:
hs.Plugin("Script Connector").ExecRemoteSub( scriptClient, scriptFile, param )
object = hs.Plugin("Script Connector").ExecRemoteFunc( scriptClient, scriptFile, param )
- New plugin API added, that returns a string array with the list of connected Script Clients
string[] = hs.Plugin("ScriptConnector").ClientList
- New #USING directive available within scripts to use other namespaces.
- The hs object is now global and available within the whole scripts. In previous versions, the hs object was only available to the main class, and it was necessary to pass it as a variable to other classes within the script.
- New sh global object (ScriptHost) available within scripts. The sh object API is the following:
sh.SetContext( keyString, paramObject ) <-- Save an object within the script client
object = sh.GetContext( keyString) <-- Get an object previously saved
boolean = sh.ExecLocalSub( scriptPath, paramObject )
object = sh.ExecLocalFunc( scriptPath, paramObject )
boolean = sh.ExecRemoteSub( scriptClient, scriptPath, paramObject )
object = sh.ExecRemoteFunc( scriptClient, scriptPath, paramObject )
string [] = sh.ClientList <-- List of registered Script clients as a string array
string = sh.ClientName <-- Name of the running Script Client
- New Distributed Media Player remote script, in the Scripts/Media directory
The Distributed Media Player scripts currently only work with VLC Media Player (ie you must have VLC 0.8.6 installed on remote computers). There are stub control scripts for Windows Media Player and WinAmp, but they are not currently implemented.
The Distributed Media Player scripts allow you to play music and video files on any remote computer with the Script Client running and VLC installed. You can take control of the remote media player from any other computer with the Script Client Running.
Run the script media/control.cs to launch the Distributed Media Player control Window from any computer.
Edit the GetVideoDirectory.cs and GetMusicDirectory.cs scripts to change initial media directories on each remote computers (these directories default to Documents/My Music and My Videos).
Edit the GetMusicPlayerType.cs and GetVideoPlayerType.cs scripts to allow or forbid playing remote media on each computer.
You can also use the Distributed Media Player features from any HomeSeer script or event (I mean without using the Distributed Media Control Window Interface). Ask me for more info about this.
Comment