Timers - Reetus/ClassicAssist GitHub Wiki
ClassicAssist Macro Commands
Generated on 5/7/2025 2:43:33 PM
Version: 4.5.4+dbfbbc8ea5b833a0bcd4d78267e45c252f45ed42
Timers
CreateTimer
Method Signature:
Void CreateTimer(System.String)
Parameters
- name: Timer name.
Description:
Create a new named timer.
Example:
CreateTimer("shmoo")
RemoveTimer
Method Signature:
Void RemoveTimer(System.String)
Parameters
- name: Timer name.
Description:
Removes the named timer.
Example:
RemoveTimer("shmoo")
SetTimer
Method Signature:
Void SetTimer(System.String, Int32)
Parameters
- name: An entity serial in integer or hex format, or an alias string such as "self".
- milliseconds: Integer value - See description for usage. (Optional)
Description:
Set a timer value and create in case it does not exist.
Example:
SetTimer("shmoo", 0)
Timer
Method Signature:
Int64 Timer(System.String)
Parameters
- name: Timer name.
Description:
Check for a named timer value.
Example:
if Timer("shmoo") > 10000:
TimerExists
Method Signature:
Boolean TimerExists(System.String)
Parameters
- name: Timer name.
Description:
Returns true if the timer exists.
Example:
if TimerExists("shmoo"):
TimerMsg
Method Signature:
Void TimerMsg(System.String)
Parameters
- name: Timer name.
Description:
Outputs the elapsed timer value as a SystemMessage
Example:
TimerMsg("shmoo")