Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


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

Re: TaskWindow launch an app and get its output

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Dave Higton <davehigton@dsl.pipex.com>
Newsgroups comp.sys.acorn.programmer
Subject Re: TaskWindow launch an app and get its output
Date Sat, 19 Nov 2011 22:45:55 GMT
Organization Home
Lines 29
Message-ID <dacdcc3452.davehigton@dsl.pipex.com> (permalink)
References <9d722e3152.davehigton@dsl.pipex.com> <j9rqrm$gls$1@dont-email.me>
X-Trace individual.net 0kytuezVkOioOCpLSSNFZgRpjfCDEIqOPCtroKkiRAMVCCdQA=
X-Orig-Path dsl.pipex.com%davehigton
Cancel-Lock sha1:0cM2Thzn6kiO5zjA/kF7iMkXDrU=
User-Agent Messenger-Pro/3.29 (MsgServe/3.10) (RISC-OS/5.16) NewsHound/v1.50-32
X-Editor Zap 1.48 (21 May 2011) tnk-6, ZapEmail 0.28.3 (25 Mar 2005) (32)
Xref x330-a1.tempe.blueboxinc.net comp.sys.acorn.programmer:1049

Show key headers only | View raw


In message <j9rqrm$gls$1@dont-email.me>
          druck <news@druck.org.uk> wrote:

> On 12/11/2011 22:07, Dave Higton wrote:
> > I'd like to get a task running in a TaskWindow to launch an Absolute
> > application, and transfer some data from or to it via a dynamic
> > area.
> >
> > I've claimed the DA OK.  I've launched the Absolute file using
> > Wimp_StartTask.  It completes (very quickly).  However, all
> > subsequent output from the original TaskWindow app seems to be
> > on the top line (Zap on a BBxM) of the TaskWindow.
> >
> > Any ideas/suggestions?
> 
> You can't directly launch any program that calls Wimp_Initialise from a 
> TaskWindow, as you are already inside the Taskwindow's wimp task. The 
> best you can do is to request that another Wimp application starts it. 
> The easiest way to do this is to *Filer_Run the program, this command is 
> queued by the filer module and will be executed by the filer task when 
> it gets polled.

This works to some extent; the output in the TaskWindow doesn't get
loused up.  However, I need to pass some non-constant arguments to
the Absolute app, which means Filer_Run won't work directly.  I
presume this means I'd have to construct an Obey file in a writable
directory, then Filer_Run that.  Is there any easier way?

Dave

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


Thread

TaskWindow launch an app and get its output Dave Higton <davehigton@dsl.pipex.com> - 2011-11-12 22:07 +0000
  Re: TaskWindow launch an app and get its output druck <news@druck.org.uk> - 2011-11-14 19:40 +0000
    Re: TaskWindow launch an app and get its output Dave Higton <davehigton@dsl.pipex.com> - 2011-11-19 22:45 +0000
      Re: TaskWindow launch an app and get its output druck <news@druck.freeuk.com> - 2011-11-19 23:49 +0000
      Re: TaskWindow launch an app and get its output Thomas Milius <Thomas-Milius@t-online.de> - 2011-11-20 11:48 +0100
  Re: TaskWindow launch an app and get its output Erik G <erikg@noname.invalid> - 2011-11-16 16:53 +0100
    Re: TaskWindow launch an app and get its output Martin Wuerthner <spamtrap@mw-software.com> - 2011-11-16 17:29 +0100
  Re: TaskWindow launch an app and get its output James Lampard <dontreplytothis@mailinator.com> - 2011-11-18 03:35 -0800
    Re: TaskWindow launch an app and get its output Dave Higton <davehigton@dsl.pipex.com> - 2011-11-19 22:14 +0000
      Re: TaskWindow launch an app and get its output druck <news@druck.freeuk.com> - 2011-11-19 23:44 +0000
      Re: TaskWindow launch an app and get its output James Lampard <dontreplytothis@mailinator.com> - 2011-11-20 02:39 -0800
        Re: TaskWindow launch an app and get its output Dave Higton <davehigton@dsl.pipex.com> - 2011-11-20 14:56 +0000
          Re: TaskWindow launch an app and get its output James Lampard <dontreplytothis@mailinator.com> - 2011-11-25 09:24 -0800
            Re: TaskWindow launch an app and get its output Dave Higton <davehigton@dsl.pipex.com> - 2011-11-25 21:00 +0000
              Re: TaskWindow launch an app and get its output Dave Higton <davehigton@dsl.pipex.com> - 2011-11-27 13:56 +0000
                Re: TaskWindow launch an app and get its output "Ste (news)" <steve@revi11.plus.com> - 2011-12-20 13:48 +0000
  Re: TaskWindow launch an app and get its output Gerph <gerph@gerph.org> - 2011-11-20 05:09 -0800
    Re: TaskWindow launch an app and get its output Dave Higton <davehigton@dsl.pipex.com> - 2011-11-22 17:07 +0000

csiph-web