SchedulerCommandAdd Method (IMScheduler)
schedule time
name of command
parameters of command
source or target object
output scheduled item
Adds a new command to task at specified time.
Syntax
Sub SchedulerCommandAdd( _
   ByRef _pTime As M_DATETIME, _
   ByVal _bsCommand As String, _
   ByVal _bsParam As String, _
   ByVal _pSourceOrTargetObject As Object, _
   ByRef _ppTask As MItem _
) 
void SchedulerCommandAdd( 
   ref M_DATETIME _pTime,
   string _bsCommand,
   string _bsParam,
   object _pSourceOrTargetObject,
   out MItem _ppTask
)
procedure SchedulerCommandAdd( 
   var  _pTime: M_DATETIME;
    _bsCommand: String;
    _bsParam: String;
    _pSourceOrTargetObject: TObject;
   Out  _ppTask: MItem
); 
void SchedulerCommandAdd( 
   ref M_DATETIME _pTime,
   BSTR* _bsCommand,
   BSTR* _bsParam,
   IUnknown* _pSourceOrTargetObject,
   [PARAMFLAG::Out] MItem* _ppTask
) 

Parameters

_pTime
schedule time
_bsCommand
name of command
_bsParam
parameters of command
_pSourceOrTargetObject
source or target object
_ppTask
output scheduled item
Example
Dim mTimeStart As M_DATETIME
Dim mTimeStop As M_DATETIME
Dim eStartType As eMStartType
Dim myTask As MItem
pItem.ItemTimesGet(mTimeStart, mTimeStop, eStartType)
Dim strPath As String = "d:\clips\SampleClip1.wmv"
myPlaylist.SchedulerCommandAdd(mTimeStop, "start", "", myNewFile, myTask)
M_DATETIME mTimeStart;
M_DATETIME mTimeStop;
eMStartType eStartType;
MItem myTask;
pItem.ItemTimesGet(out mTimeStart, out mTimeStop, out eStartType);
string strPath = @"d:\clips\SampleClip1.wmv";
myPlaylist.SchedulerCommandAdd(mTimeStop, "start", "", myNewFile, out myTask);
var
myPlaylist: MPlaylist;
mTimeStart, mTimeStop: M_DATETIME;
eStartType: eMStartType;
myTask, pItem: MItem;
myPath: string;
myScheduler: IMScheduler;
begin
myPlaylist:= CreateComObject(CLASS_MPlaylist) as MPlaylist;
myPath:= 'd:\clips\SampleClip1.wmv';
myPlaylist.PlaylistAdd(nil, myPath, '', -1, pItem);
pItem.ItemTimesGet(mTimeStart, mTimeStop, eStartType);
myScheduler := myPlaylist as IMScheduler;
myScheduler.SchedulerCommandAdd(mTimeStop, tart', '', myNewFile, myTask);
end;
See Also

Reference

IMScheduler Interface
IMScheduler Members