Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #1048
| From | Dave Higton <davehigton@dsl.pipex.com> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: TaskWindow launch an app and get its output |
| Date | 2011-11-19 22:14 +0000 |
| Organization | Home |
| Message-ID | <4ae9c93452.davehigton@dsl.pipex.com> (permalink) |
| References | <9d722e3152.davehigton@dsl.pipex.com> <314050ac-9837-4f22-9ba8-dcc0a2f338a2@e2g2000vbb.googlegroups.com> |
In message <314050ac-9837-4f22-9ba8-dcc0a2f338a2@e2g2000vbb.googlegroups.com>
James Lampard <dontreplytothis@mailinator.com> wrote:
> On Nov 12, 10:07 pm, Dave Higton <davehig...@dsl.pipex.com> 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?
>
> I suspect the problem may be that Wimp_StartTask calls
> Wimp_CommandWindow.
>
> There was a bug in old versions of the wimp that caused
> Wimp_CommandWindow to output some control characters to the standard
> output each time it was called even if the command window proper was
> not being opened. These control characters would be picked up by Zap's
> taskwindow implementation causing odd effects.
>
> The odd thing is that I thought this bug had been fixed post RISC OS
> 4. It should not occur on a BBxM.
>
> I suggest opening the initial task with '%TaskWindow' to get around
> Zap's aliasing of the TaskWindow command (namely it adds the -ctrl
> parameter). After this control codes should be ignored.
My apologies for the delay; I've been out of the country for a week.
I think you're onto something re. the cause, but unfortunately not
the cure. I originally started the app by double-clicking an app
directory whose !Run file is of type TaskObey, containing the line:
Basic -quit <Obey$Dir>.RunImage
I've changed it so !Run is now of type Obey, containing the line:
Taskwindow -ctrl "Basic -quit <Obey$Dir>.RunImage"
Alternatively:
%Taskwindow "Basic -quit <Obey$Dir>.RunImage"
The first behaves no differently from my original. The second does
print out all the lines, but without carriage returns!
I then tried redirecting the output of my Absolute app to a log
file, to see if I could catch the control characters. It logs:
1C 28 5B 77 24 04 17 01 00 00 00 00 00 00 00 00
17 10 01 FE 00 00 00 00 00 00
Even with the output from the Absolute file supposedly redirected,
the output from the first app is still affected.
Does this put us any further forward in diagnosing what's happening?
Dave
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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