KeepAlive
Previous Top Next

Resets the system idle timer and prevents the device from suspending.
It should be called repeatedly in an interval smaller than the device's idle time.
Syntax: KeepAlive

Example:
Sub App_Start
      Form1.show
      Hardware1.New1
      AddTimer("Timer1")
      Timer1.Interval = 5000 '5 seconds
      Timer1.Enabled = true
End Sub

Sub Timer1_Tick
      Hardware1.KeepAlive 'Resets the idle timers
End Sub