Groups | Search | Server Info | Login | Register


Groups > comp.sys.acorn.programmer > #6589

Re: Using WGET from basic

From Harriet Bazley <harriet@bazleyfamily.co.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Using WGET from basic
Date 2026-01-12 01:28 +0000
Organization A noiseless patient Spider
Message-ID <bcf6c7995c.harriet@bazleyfamily.co.uk> (permalink)
References <3e719a995c.Paul@phorefaux>

Show all headers | View raw


On 11 Jan 2026 as I do recall,
          Paul Stewart  wrote:

> Hi all,
> 
> Recently started using WGET to fetch some files.
> Is it possible to call this from a basic program and it mulitask in the 
> background?

You need to launch that sort of thing in a taskwindow if you want it to
multitask.  But then of course you will need some way to know when it is
finished, because if it is multitasking that means that your program
could also be taking other actions (i.e. receiving keypresses or Wimp
messages) while wget is busy getting a file via the Web.

!Infozip has a procedure called FNchildtask which launches a task (in
the format "TaskWindow" plus command line options) and returns the task
handle as the result of that function.
It then listens out for the WIMP message TaskCloseDown (&400C3) with
that task handle being broadcast, which means that the child task has
finished and the application can now act upon its results.  You need to
make sure that you have included message &400C3 in the list of
user messages specified during the Wimp_Initialise stage, though, or you
will never receive it.   :-)

-- 
Harriet Bazley                     ==  Loyaulte me lie ==

Some people cause happiness wherever they go; others, whenever they go.

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Using WGET from basic Paul Stewart <phorefaux@gmail.com> - 2026-01-11 17:11 +0000
  Re: Using WGET from basic Harriet Bazley <harriet@bazleyfamily.co.uk> - 2026-01-12 01:28 +0000
    Re: Using WGET from basic Paul Stewart <phorefaux@gmail.com> - 2026-02-08 16:47 +0000
  Re: Using WGET from basic Kevin Wells <kev@kevsoft.co.uk> - 2026-01-12 18:23 +0000

csiph-web