Re: How to escape out of a loop
- From: mr_unreliable <kindlyReplyToNewsgroup@xxxxxxxxxxx>
- Date: Thu, 18 Jan 2007 12:05:39 -0500
Andy, I view this as one of the sad consequences of
wsh/vbs not having a visual interface (gui) other than
askboxes and msgboxes.
I suggest making yourself a gui by using (ugh, gross,
bloated) IE as a graphical interface. You can find
numerous examples of this by searching the archives.
Go to google => groups => advanced group search, and
look for: CreateObject("InternetExplorer.Application").
In particular, you might focus on status message /
progressbar (IE) dialogs. And finally, add a button
(call it: "Exit" or "Close Script") to your dialog.
And using "GetRef", hook the dialog back to your
script. That is, connect the button's "onClick"
event to a subroutine in your script, which will
include coding to terminate the script directly
(say, by using WScript.Quit)..
cheers, jw
____________________________________________________________
You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)
Andy Morton wrote:
Hi,.
I have a vbscript that checks through large text files looking for this and that.
I loop through the lines using the Do while not EndOfTextStream() function.
Some of these files are huge.
Sometimes I realise that I need to stop the prog.
Is there a way I can programme combination of keys to escape from the loop ?
Some other method ?
Right now I'm crashing the process through the Ctrl + Alt + Del + Programme Manager. None too elegant, I must admit.
Could someone please paste an example ? Or point me to a link.
Thanks in advance.
Andy Morton.
- Follow-Ups:
- Re: How to escape out of a loop
- From: Andy Morton
- Re: How to escape out of a loop
- References:
- How to escape out of a loop
- From: Andy Morton
- How to escape out of a loop
- Prev by Date: Re: error in script if some one can help me
- Next by Date: Re: ÇëÎÊÄÇÀïÓбȽϺõÄvbs ×ÊÔ´
- Previous by thread: Re: How to escape out of a loop
- Next by thread: Re: How to escape out of a loop
- Index(es):
Relevant Pages
|