Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Paul Stewart Newsgroups: comp.sys.acorn.programmer Subject: Re: Using WGET from basic Date: Sun, 08 Feb 2026 16:47:05 GMT Organization: A noiseless patient Spider Lines: 35 Message-ID: References: <3e719a995c.Paul@phorefaux> Injection-Date: Sun, 08 Feb 2026 16:47:43 +0000 (UTC) Injection-Info: dont-email.me; posting-host="cc12315bb7fd7a846aa1d3425bd6b64a"; logging-data="2209714"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4hezuGToB82D1AMLJDEaS" User-Agent: Messenger-Pro/9.00 (MsgServe/9.00) (RISC-OS/4.42) NewsHound/v1.54 Cancel-Lock: sha1:K2OODo7hHBACQAZPO4yawDfRLu8= X-Editor: EmailEdit 2.04 Xref: csiph.com comp.sys.acorn.programmer:6591 In message Harriet Bazley wrote: > 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. :-) Thanks to Kevin and Harriet,for your comments on this. A bit more looking through the old CSA.programmer postings and the PRMS, and have doing what I was looking for. -- Paul Stewart Sent from A9home running RISC OS 4.42