I found a way to use the Wscript.Sleep function with Ultra Hal.
Here is the workaround:
Set objWSHShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
MyDir = "C:\MyVariableDirectory\"
If objFSO.FileExists(MyDir & "MySleep.vbs") Then MyFileExists = True Else MyFileExists = False
If MyFileExists = False Then
Set HalXBrain = CreateObject("UltraHalAsst.Brain")
HalXBrain.AppendFile(MyDir & "MySleep.vbs"), "WScript.sleep 1000"
Do Until objFSO.FileExists(MyDir & "MySleep.vbs") : Loop
End If
objWSHShell.Run """" & MyDir & "MySleep.vbs" & """", ,true
That will set up the file you need, and Wscript.Sleep for one second. Of course the time could be changed.
If you want to go longer, change the 1000 (one second) to 5000 (for five seconds) and so on.
Beautiful. It almost makes me cry.
