Hey, I need to write program, which will do some action after 11 minutes.
I have that action done, but I dont know how to write to wait 11 minutes, and how to write to wait 20 secs after 1 action.
Private Sub Command1_Click()
Dim hWnd As Long
hWnd = FindWindowByCaption("welcome to mia's website - Mozilla Firefox")
If hWnd = 0 Then
MsgBox "Window not found", vbCritical, "Fehler"
Else
Call BringWindowToTop(hWnd):
Call SendKeys("TAB", True)
Call SendKeys("{ENTER}", True)
Call SendKeys("{F5}", True)
End If
End Sub
It need to wait 20 secs after Call SendKeys("{ENTER}", True) and it need to wait 11 minutes after F5 then it need to do the same action (TAB > 20 secs, ENTER). Thanks :)