-
-
Notifications
You must be signed in to change notification settings - Fork 46
Macros
Reetus edited this page Sep 2, 2024
·
278 revisions
Generated on 9/2/2024 10:46:49 PM
Version: 4.425.19+0c26057dbb7e7e285dbbb7378d1639f9d9112e29
Method Signature:
Boolean IsRunning(System.String)
- name: Macro name.
Description:
Returns True if the specified macro name is currently running
Example:
if IsRunning('macro'):
Method Signature:
Void PlayCUOMacro(System.String)
- name: Macro name.
Description:
Plays the specified CUO macro name
Example:
PlayCUOMacro('Paperdoll')
Method Signature:
Void PlayMacro(System.String, System.Object[])
- name: Macro name.
- args: Comma seperated list of parameters.
Description:
Plays the given macro name.
Example:
# Play another macro
PlayMacro("beep")
# Play another macro passing parameters to it
PlayMacro("beep", 1, "moo")
# In the played macro, args[0] will be 1 and args[1] will be "moo"
Method Signature:
Void Replay(System.Object[])
- args: Comma seperated list of parameters.
Description:
Replay the current macro
Example:
Replay()
Method Signature:
Void Stop(System.String)
- name: Macro name. (Optional)
Description:
Stops the current macro.
Example:
# Stop the current macro
Stop()
# Stop a macro by name
Stop("Background Macro")
Method Signature:
Void StopAll()
Description:
Stops all running macros including background macros.
Example:
StopAll()