Re: hta file refresh output in textarea
- From: "Joe Fawcett" <joefawcett@xxxxxxxxxxxxxxxx>
- Date: Thu, 5 Jan 2006 10:03:13 -0000
"Rich Milburn [MVP]" <richdotmilburnatapplebeesdotcom> wrote in message
news:O$GjJ$VEGHA.1736@xxxxxxxxxxxxxxxxxxxxxxx
>I have an hta that is doing a data migration. It copies lots of files and
>displays status messages in a scrolling textarea. The scripting is
>vbscript. The flow is something like this:
>
> read filename
> textarea.value = textarea.value & "Processing " & filename
> copy filename to destination
> textarea.value = textarea.value & "Copying " & filename
> msgbox "done with these files"
> read another filename
>
> and so on. The thing is, when it stops on a message box, or to pop up a
> folder copy dialog (used for folders but FSO.CopyFile is used for
> individual files) the updates appear in the text area. But if it runs
> through a list of files to copy, even though there may be lots of updates,
> they don't show up until the next dialog box. I can't find a way to force
> the textarea to refresh the display... I've tried timers, and other things
> like that, but no luck. Any ideas?
>
> thanks
> Rich
>
> --
> Rich Milburn
> [MVP - Directory Services]
>
There was an article on "updating the display during lengthy operations" on
MSDN, don't have the link but Google.groups should help.
If you don't mind using Active ScriptX from meadroid.com has a wait method
that services the message queue.
--
Joe Fawcett (MVP)
https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5
.
- Follow-Ups:
- Re: hta file refresh output in textarea
- From: mr_unreliable
- Re: hta file refresh output in textarea
- References:
- hta file refresh output in textarea
- From: Rich Milburn [MVP]
- hta file refresh output in textarea
- Prev by Date: AutoIT and WSH sendkeys not working
- Next by Date: Re: hta file refresh output in textarea
- Previous by thread: hta file refresh output in textarea
- Next by thread: Re: hta file refresh output in textarea
- Index(es):
Relevant Pages
|