Hi Smita,
In addition to Gennadiy's answer, you can prevent a screen saver from starting in the following ways:
* Call the Windows API
SystemParametersInfo function to temporarily disable the screen saver:
' Disable the screen saver
Call Win32API.SystemParametersInfo(Win32API.SPI_SETSCREENSAVEACTIVE, False, Null, 0)
' Do something
' Enable the screen saver
Call Win32API.SystemParametersInfo(Win32API.SPI_SETSCREENSAVEACTIVE, True, Null, 0)
* Create a timer that will fire periodically and move the mouse pointer on the screen:
Sub Test
Set timer = Utils.Timers.Add(900, "Unit1.MoveMouse", True)
' Do something
End Sub
Sub MoveMouse
Sys.Desktop.MouseX = Sys.Desktop.MouseX + 1
End Sub