DevMSN+

酷酷的MSN插件,随心所欲MSN

Messenger Plus! Live - Scripting Documentation

Objects Reference - MsgPlus

MsgPlus::AddTimer

The MsgPlus::AddTimer function creates a new timer event for your script. The OnEvent_Timer event will be fired once after the specified time interval elapses.

溴>


Messenger Plus! Live -脚本文件



物体的参考-m sgplus
msgplus : : addtimer


该msgplus : : addtimer功能,创建一个新的计时器事件为您的
脚本。该onevent_timer活动将在发射后,在指定的时间间隔
经过。

该msgplus : : addtimer功能,创建一个新的计时器事件为您的
脚本。该onevent_timer活动将在发射后,在指定的时间间隔
经过。

Syntax

AddTimer(
    [string] TimerId,
    [number] Elapse
);

Parameters

TimerId
[string] Unique string identifying the new timer. Every script can create up to 100 timers, each one with their own unique identifier. When a timer event occurs, the Id is passed as parameter. You can specify any string you want for TimerId apart from an empty string. Different scripts can use identical TimerId without worrying of possible conflicts.
Elapse
[number] Amount of time that has to elapse, in milliseconds, before the event is fired. This number needs to be in the range of 100 to 86,400,000 (one day).

Return Value

No value is returned by this function.

没有任何价值,是经由这个功能。

没有任何价值,是经由这个功能。

This function typically fails for the following reason:

这项功能通常失败,原因如下:

这项功能通常失败,原因如下:

  • The maximum number of timers allowed for this script has been reached.
  • The Elapse parameter is not in the valid range of accepted values.

Remarks

Messenger Plus! timers are generated only once. When the event is fired, the timer is removed from the list. If you desire the event to be generated on regular intervals, simply call AddTimer in OnEvent_Timer. If AddTimer is called with the TimerId of an existing timer event, the event is reset with the new Elapse time.

Messenger Plus!定时器所产生的只有一次。当事件
发射,计时器是从名单中剔除。如果您的愿望,一旦被
所产生的定期,只需调用addtimer在
onevent_timer 。如果addtimer是所谓的与
timerid一个现有的计时器事件,
事件是重置与新过去的时间。

Messenger Plus!定时器所产生的只有一次。当事件
发射,计时器是从名单中剔除。如果您的愿望,一旦被
所产生的定期,只需调用addtimer在
onevent_timer 。如果addtimer是所谓的与
timerid一个现有的计时器事件,
事件是重置与新过去的时间。

Function Information

Object MsgPlus
Availability Messenger Plus! Live 4.00

See Also

MsgPlus Object, CancelTimer, OnEvent_Timer.

msgplus对象,
canceltimer ,
onevent_timer 。

msgplus对象,
canceltimer ,
onevent_timer 。

  Sponsor

  Links

Scripts文档目录 脚本库 FAQ
copyright devmsn.com