Mouse Over

Move the mouse overtop of the specified object to run the specified operation.

Note: This trigger is supported on SP5000 Series Open Box (Windows 10 IoT Enterprise Model), IPC series, and PC/AT.

For models that support this trigger, see the following.

Supported Model/Feature List
Block

Text

onMouseEnter($GraphicObject, ()=>{
     1             2
});

EnableDelay

onMouseEnterWithDelay($GraphicObject, 10, ()=>{
         1/3                2        4
});

1: Operation

2: Target object

3: Enable Delay

4: Delay set time

Operation Description
Block

[Mouse Enter]

Text
'onMouseEnter' or 'onMouseEnterWithDelay'

 

The operation is triggered when the mouse moves overtop the target object on the screen.

You can set a delay time after the [Mouse Enter] trigger, until the defined operation is run.

Block

Select the [Enable Delay] check box to set a delay time.

Text

To set a delay time (for example, 10*100 ms) in Text mode, use

onMouseEnterWithDelay($GraphicObject.Switch1, 10, ()=>{
)};

Note: You can also execute a [Mouse Enter] trigger as follows:

  • Touch outside the object, then touch the object.
  • Drag the mouse cursor from outside the object, then drop overtop the object.
Block

[Mouse Leave]

Text
'onMouseLeave' or 'onMouseLeaveWithDelay'

 

After the mouse moves over top the target object on the screen, the operation is triggered when the mouse leaves the object area.

You can set a delay time after the [Mouse Leave] trigger, until the defined operation is run.

Block

Select the [Enable Delay] check box to set a delay time.

Text

To set a delay time (for example, 10*100 ms) in Text mode, use

onMouseLeaveWithDelay($GraphicObject.Switch1, 10, ()=>{
)};

Note: You can also execute a [Mouse Leave] trigger as follows:

  • Touch the object, then touch outside the object.
  • Drag the mouse cursor from overtop the object, then drop outside the object.

Note: Web Viewer does not support detection of mouse over events. However, you can still execute [Mouse Enter] and [Mouse Leave] triggers in some cases in Web Viewer. For information, refer to the following.
Gestures You can Use in the Screen Display Area