I have a Windows Gadget I created that performs a function within a sub, which is timed (currently 10 seconds), it will check each 10 seconds then wait and loop and perform the function again, however, the loop stops when the PC comes out of sleep, it stops dead and won't resume, how would I stop this from happening in VBScript/HTA?
<SCRIPT LANGUAGE="VBScript">
Option Explicit
Dim iTimerID, RefreshList
Sub
Window_OnLoad RefreshList
iTimerID = window.setInterval("RefreshList", 10000, "VBScript")
End Sub
</SCRIPT>
Sub RefreshList {do something} End Sub