I have a .vbs script, and am able to run it from mIRC, but I actually WANT mIRC to wait until the .vbs script is done processing.
alias pstat {
var %s = 1
if ($com(Pstats)) { .comclose PStats }
.comopen Pstats wscript.shell
.comclose PStats $com(Pstats,run,1,bstr*,test\pstat.vbs,uint,0,bool,true)
window -nh @MI-WebGet
filter -fwc $qt("test\pstats2.txt") @MI-WebGet *
goto end
:error | reseterror | %s = $null
if ($com(PStats)) { .comclose PStats }
:end | return %s
}
Once the pstats.vbs has started running, mIRC continues on. Is there a way to get mIRC to pause/freeze/wait until the .vbs file is finished?
Edit Starts Here:
After doing a little more trial&error/testing, I realised Something: The command tree calling the Pstats waits, yet MIRC as a whole doesn't. I can still type, send text, etc while the .vbs processes, yet once it's finished, it returns %s(Unintended Threading? I might explore this some more)