My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
Messages  
TVShow's internal commands
Updated Feb 5, 2009 by wilso...@gmail.com

Introduction

TVShow2's plugins communicate via messages. A message contains 1 or more values. The first value is the message Text (the actual command or status message being sent), and the rest of the values are the arguments.

When specified in a text string (such as an .ini file), message parts are separated by a semicolon, like this: play;C:\media\mytvshow.mpg

Argument Flags

opt : argument is optional. this can be not included or can be blank. list : for the last argument, this can be one or more values of the same type.

Details

key

A key was pressed. Possible keycodes are: up, down, left, right, pageup, pagedown, escape, enter, menu (opens DVD Menu), options, info, 0-9, red (F5), yellow (F6), blue (F7), green (F8), Play, Pause, PlayPause, rw, ff, prev, next, volup, voldown, mute

Note: do not use keys to issue commands. Input plugins should map values using their .ini files. If you don't know a value (such as remote control codes), use the TestRig plugin to monitor messages and add your command code. For more information, read KeyMapping

Arguments:

keycode Text string identifying the key. Text values come from the Keys enumeration
shift opt Shift key status. 1=shift pressed (not sent for printable characters)
control opt Control key status. 1=pressed
alt opt Alt key status. 1=pressed

Example:

key;enter - Enter key was pressed.

key;f5;0;0;1 - f5 was pressed with the alt key held down

key;A - user typed an upper-case A

showmenu

shows the menu specified. Arguments:

menu name Name of menu to show.

Example:

showmenu;Main Menu - shows the main menu

showfolder

shows the media folder specified

Arguments:

path path to show
type opt values: video, audio, images, all. Default is all files
filter opt list one or more wildcard filters (eg: .mp3) default: .

Example:

showfolder;C:\media;video

showfolder;C:\music;all;.mp3;.aac;.ogg

shutdown

Description: Closes all windows and exits TVShow. No arguments.

launch

Launch an application. Args and workingdir are optiona. If workingdir is specified without args, leave args blank: program.exe;;C:\program files\program

Arguments:

apppath Application to launch
args opt command-line arguments
working dir opt working directory

Example:

iexplore.exe;http://www.google.com

cmd.exe;;C:\

action

This is a keyboard or remote action. Actions are mapped using the input plugin's .ini file. See KeyMapping for more information.

Arguments: Additional arguments are context sensitive, but the following is mandatory:

action Action executed. Possible values include: up, down, left, right, select, play, stop, pause

Example:

action;up - user pressed the up-arrow key

action;stop - stop the currently playing media

Powered by Google Project Hosting