Hi All
I am writing the folliowing piece of code to be called again and again after 30 min. But I need to do invisible mouse move to stop screen saver occuring so i want to sendkeys after every 5 minutes. The Sub abc is in module and everything works except stoping screensaver from occuring .Can anyone please tell me the way to do it?
I am writing the folliowing piece of code to be called again and again after 30 min. But I need to do invisible mouse move to stop screen saver occuring so i want to sendkeys after every 5 minutes. The Sub abc is in module and everything works except stoping screensaver from occuring .Can anyone please tell me the way to do it?
Code:
Private Sub UserForm_Initialize()
'Update the Barcodes printed today
Call CommandButton1_Click
'Update batches to be scanned / batches scanned today
Call CommandButton3_Click
'Update files batched and counted today
Call CommandButton2_Click
Application.OnTime Now + TimeValue("00:00:00"), "abc"
'GoToSub
End Sub
Sub abc()
'Update the Barcodes printed today
Call DashBoardUF1.CommandButton1_Click
'Update batches to be scanned / batches scanned today
Call DashBoardUF1.CommandButton3_Click
'Update files batched and counted today
Call DashBoardUF1.CommandButton2_Click
SendKeys "%FO"
Application.OnTime Now + TimeValue("00:00:05"), "abc"
'GoToSub
End Sub