Right-click the mouse on the specified object to run the script operation.
For models that support this trigger, see the following.
Supported Model/Feature ListonRightClick($GraphicObject, ()=>{
1 2
})
1: Operation
2: Target object
For information about the objects which is available in Target Object, refer to the following.
The operation is triggered when you right-click the target object once.
onRightClick($GraphicObject.Switch1, () => {
});
The operation is triggered when you press the right-click button on the target object.
onRightPress($GraphicObject.Switch1,
() => {
});
1: EnableDelay
After the right-click button is pressed for the specified amount of time, the operation is run.
Select the check box to set a delay time.
To set a delay time (for example, 10*100 ms) in Text mode, use
onRightPressWithDelay($GraphicObject.Switch1,
10, () => {
});
Example 1 | ![]() ![]() |
Example 2 | ![]() ![]() ![]() |
Example 3 | ![]() ![]() ![]() ![]() |
The operation is triggered when you release the right-click button from the object.
onRightRelease($GraphicObject.Switch1,
() => {
});
1: EnableDelay
After the right-click button on the object is released and the specified time elapses, the operation is run.
Select the check box to set a delay time.
To set a delay time (for example, 10*100 ms) in Text mode, use
onRightReleaseWithDelay($GraphicObject.Switch1,
10, () => {
});
|
When designing the [Right Release] trigger, take into account that the [Right Release] trigger is also activated when the target object is no longer touchable. Failure to follow these instructions can result in death, serious injury, or equipment damage. |
Example 1 | ![]() ![]() |
Example 2 | ![]() ![]() ![]() |
Example 3 | ![]() ![]() ![]() |
If both [Right Press] and [Right Release] triggers are specified on the same object, and if the right-click button is released before the [Right Press] trigger's delay time elapses, the [Right Release] trigger is executed but not the [Right Press] trigger.
:
Operation is triggered by [Right
Release] trigger
:
Operation is NOT triggered by [Right
Press] trigger
: [Right
Press] Delay Time
While you continue holding down the right-click button on the object, the operation is repeatedly triggered for the specified duration. The maximum value that you can set for the [Duration] is 30 seconds.
onRightHold($GraphicObject.Switch1,
1000, ()=>{
});
1: EnableDelay
After the right-click button is pressed on the object for the specified amount of time, the operation is run.
Select the check box to set a delay time.
To set a delay time (for example, 10*100 ms) in Text mode, use
onRightHoldWithDelay($GraphicObject.Switch1,
1000, 10, ()=>{
});
Example 1 | ![]() ![]() ![]() |
Example 2 | ![]() ![]() ![]() ![]() |
The operation is triggered when you right-click the object two times in short succession.
onRightDoubleClick($GraphicObject.Switch1,
()=>{
});
Shapes | Supported |
Parts | All parts are supported, except for the following.
|
Predefined Images | Supported |
Layout Objects | Not Supported |
Grouped Object | Not Supported |
Screens / Contents | Not Supported |
The touch area is the area of the width and height that is shown when the object is selected.
In the figure below, the area in red is the touch area.