# Inactivity

The Inactivity trigger runs the operation, when no touch action have made at the configured time in the display unit.

##### Block

##### Text

onInactive(1, ()=>{
1
});

1: Minutes

(Example)

1. Add two screens (Screen1 and Screen2) and rename Screen2 as Screen saver.
2. Add an Image object to the Screen saver screen and select an image.
3. Add Inactivity trigger in the Script editor of Screen1 and set the Time (min) for the inactivity of the user.
4. Add a Screen Change operation.
5. Add Constant Values block, select [Int] and set 2.

In display unit, if the user is not active for the configured time period the Screen saver screen is displayed.

##### Block

##### Text

onInactive(1, ()=>{

changeScreen(2);

});