Command - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


DocumentTools[Canvas][Script]

  

Command

  

append a raw script command

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Command(script,command)

Parameters

script

-

DocumentTools:-Canvas:-Script object

command

-

string or list of strings; raw script commands

Description

• 

The Command interface allows you to record raw script commands intended for use in playback within the Maple Learn environment, and are invisible to operation within Maple.

• 

Some raw script commands are as follows:

MOVEREL

MOVEREL:x:y

x,y - signed integers

Move currently active content by offset (x,y)

MOVEREL:-100:+200

MOVE

MOVE:x:y

x,y - positive integers

Move currently to absolute position (x,y)

MOVE:10:250

Examples

withDocumentTools:-Canvas:

scScriptmode=Learn:

SetActivesc,0:0

Commandsc,MOVE:300:200

cvNewCanvasTitle,sc:

ShareCanvascv

Compatibility

• 

The DocumentTools[Canvas][Script][Command] command was introduced in Maple 2021.

• 

For more information on Maple 2021 changes, see Updates in Maple 2021.

See Also

Math

NewCanvas

Script

SetActive

SetMath

SetText