kevinguyer
7/2/2018 - 1:12 PM

Sleep - Pause in VBS

Sleep - Pause in VBS

' So simple, so elegant, so elusive.  Behold its glory:

 ' ------------------------------------------------------------------
    
Sub wait_function(secs)
	Dim enter_time, leave_time
	enter_time = Timer
	leave_time = Timer
	While (enter_time + secs > leave_time)
		leave_time = Timer
	Wend
end sub

 ' ------------------------------------------------------------------