Skip to content

Instantly share code, notes, and snippets.

@sathish-spidie
Created December 10, 2024 22:12
Show Gist options
  • Save sathish-spidie/fe2f9cbbd790dacfbc61f403ea554962 to your computer and use it in GitHub Desktop.
Save sathish-spidie/fe2f9cbbd790dacfbc61f403ea554962 to your computer and use it in GitHub Desktop.
Dim objResult
Dim intervalSec
Dim durationSec
Dim cnt
intervalSec = 60
durationSec = 1000
cnt = 0
Set objShell = WScript.CreateObject("WScript.Shell")
Do While True
objResult = objShell.sendkeys("^%{TAB}")
objResult = objShell.sendkeys("{ENTER}")
Wscript.Sleep (intervalSec*1000)
cnt = cnt + 1
If durationSec <= (intervalSec * cnt) Then
Exit Do
End If
Loop
@sathish-spidie
Copy link
Author

Dim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment