[This is preliminary documentation and subject to change.]
You can use the following syntax to launch a show reminder, either from the command line or programmatically as a task in the Task Scheduler. If you use Microsoft® WebTV® for Windows® to create a show reminders, it sets the following parameters in the Run property of tasks that it schedules in the Task Scheduler. For more information, see Scheduling Show Reminders.
The following shows the syntax for WebTV for Windows show reminders.
RemindApp /b ShowReference /u User /a MoreRemindAppParameters
The following lists and describes the parameters used in show reminder syntax.
This application can be Tvx.exe, Tvwakeup.exe, or a custom application that you create. For more information, see Show Reminder Applications.
You can create a show reference programmatically by calling either the ITelevisionServices::MakeLocalBroadcastSchedule or ITelevisionServices::MakeRemoteBroadcastSchedule method.
If you are using Tvx.exe or Tvwakeup.exe to display the show reminder, this string should be formatted as follows:
"tvviewer!Type![ShowDuration!]"
Value | Meaning |
---|---|
Remind | A reminder to watch a show. This flag causes WebTV for Windows to remind a viewer a show is on. The viewer can then tune manually to the show. |
Record | A reminder to record a show. This flag causes WebTV for Windows to tune to a show automatically. If the viewer sets a recording device to receive output at that time, the show is recorded. |
If the reminder is a record reminder, your application should use the Task Scheduler to set the TASK_FLAG_SYSTEM_REQUIRED flag for the reminder. Doing so causes WebTV for Windows to tune to the specified channel even if Broadcast Architecture is suspended. Otherwise, if the system is suspended WebTV for Windows does not run the record reminder.
In addition, if the record reminder has an application associated with it that automates tuning a VCR to a specified channel, this application should be specified in the registry value StartRecordingApp, EndRecordingApp, or both. You specify these values under the following registry key:
HKLM\Software\Microsoft\TV Services\Explorer\
TASK_FLAG_SYSTEM_REQUIRED should not be set for standard show reminders. Version 1.0 of Broadcast Architecture does not handle show reminders that occur while the operating system is suspended.
Your application can obtain the WebTV for Windows path information programmatically by calling the ITelevisionServices::get_DatabaseFile method to find the location of the database, which is installed in the same location as the WebTV for Windows executable file, Tvx.exe. Your application must then remove the database file name from the string that the ITelevisionServices::get_DatabaseFile method returns.
The following are examples of show reminder strings. This is the syntax that is set in the Run parameter of the task in the Task Scheduler. You can use this same syntax to start a show reminder from the command line.
"C:\Program Files\TV Viewer\Tvx.exe" /b "1998/4/22!73/1/0
!2:0!0!0!0!0!0!0!0!0!''!'MSNBC'!'Cable'!38!'InterNight'"
/u "GuestUser" /a "tvviewer!Remind!60!"
The following show reminder uses WebTV for Windows to remind the user that the show is about to begin. When the reminder runs, WebTV for Windows displays a dialog box.
"C:\PROGRAM FILES\TV VIEWER\TVX.EXE" /b "1998/3/13!0/0/0!23:35
!0!0!0!0!0!0!0!0!''!'MSNBC'!'Cable'!3!'Time & Again'" /u "GuestUser"
/a "tvviewer!Remind!30!"
The following show reminder is identical to the one preceding, except that it has been set as a record reminder. Notice that keyword Remind has been replaced by Record and that the application used to display the reminder is Tvwakeup.exe instead of Tvx.exe.
"C:\PROGRAM FILES\TV VIEWER\TVWAKEUP.EXE" /b "1998/3/13!0/0/0!23:35
!0!0!0!0!0!0!0!0!''!'MSNBC'!'Cable'!4!'Time & Again'" /u "GuestUser"
/a "tvviewer!Record!30!"