timeout - VBScript onTimeout then function -


i have vbscript working on uses object.

sometimes object stuck. vbscript code hang on line until it's "done". when times out, want send .close command object before vbscript closes.

how can tell when vbscript times out?

i know can put wscript.timeout = 60

maybe like..

wscript.timeout = 5 while true  loop  sub wscript_timeout()     msgbox("ok") end sub 

by seting timeout property instruct interpreter automatically terminate script when timer expires. same running interpreter option //t:xx , can't caught/handled within script. want requires ability run code asynchronously, , vbscript doesn't support that.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -