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


Groups > comp.sys.acorn.programmer > #6612 > unrolled thread

TaskWindow Messages - output

Started byPaul Stewart <phorefaux@gmail.com>
First post2026-03-11 12:29 +0000
Last post2026-03-12 20:32 +0000
Articles 7 — 3 participants

Back to article view | Back to comp.sys.acorn.programmer


Contents

  TaskWindow Messages - output Paul Stewart <phorefaux@gmail.com> - 2026-03-11 12:29 +0000
    Re: TaskWindow Messages - output Martin <News04@avisoft.f9.co.uk> - 2026-03-11 13:11 +0000
      Re: TaskWindow Messages - output Paul Stewart <phorefaux@gmail.com> - 2026-03-11 17:51 +0000
        Re: TaskWindow Messages - output Harriet Bazley <harriet@bazleyfamily.co.uk> - 2026-03-11 18:50 +0000
          Re: TaskWindow Messages - output Paul Stewart <phorefaux@gmail.com> - 2026-03-11 19:42 +0000
            Re: TaskWindow Messages - output Martin <News04@avisoft.f9.co.uk> - 2026-03-11 23:28 +0000
              Re: TaskWindow Messages - output Paul Stewart <phorefaux@gmail.com> - 2026-03-12 20:32 +0000

#6612 — TaskWindow Messages - output

FromPaul Stewart <phorefaux@gmail.com>
Date2026-03-11 12:29 +0000
SubjectTaskWindow Messages - output
Message-ID<61f8e2b75c.Paul@phorefaux>
Help Please!!!

I think I am probably misunderstanding something and so far appear to be 
doing nothing but going around in circles.  I've searched through CSA 
programmer archives on Google Groups also before posting.

So I've started a task using SYS"Wimp_StartTask"
That is working fine.

Listening for message &808C2 (TaskWindow_Ego) to grab correct task handle
Again, working fine.

(I can have also tested &808C4 (TaskWindow_Morite) to kill the task)

Now I'm thinking I should be listening for &808C1 (TaskWindow_Output) to 
receive the contents of the TaskWindow.  Is that correct?


-- 
Paul Stewart
Sent from A9home running RISC OS 4.42

[toc] | [next] | [standalone]


#6613

FromMartin <News04@avisoft.f9.co.uk>
Date2026-03-11 13:11 +0000
Message-ID<5cb7e6d170News04@avisoft.f9.co.uk>
In reply to#6612
In article <61f8e2b75c.Paul@phorefaux>,
   Paul Stewart <phorefaux@gmail.com> wrote:
> Help Please!!!

> I think I am probably misunderstanding something and so far appear
> to be doing nothing but going around in circles.  I've searched
> through CSA programmer archives on Google Groups also before
> posting.

> So I've started a task using SYS"Wimp_StartTask" That is working
> fine.

> Listening for message &808C2 (TaskWindow_Ego) to grab correct task
> handle Again, working fine.

> (I can have also tested &808C4 (TaskWindow_Morite) to kill the task)

> Now I'm thinking I should be listening for &808C1
> (TaskWindow_Output) to receive the contents of the TaskWindow.  Is
> that correct?

Yes, that is how you see the output to display yourself, interrogate,
or lose.

You can also send input to the TW by sending a TaskWindow_Input
message.

Remember to Ack where appropriate!

-- 
Martin Avison 
Note that unfortunately this email address will become invalid
without notice if (when) any spam is received. 

[toc] | [prev] | [next] | [standalone]


#6614

FromPaul Stewart <phorefaux@gmail.com>
Date2026-03-11 17:51 +0000
Message-ID<167a00b85c.Paul@phorefaux>
In reply to#6613
In message <5cb7e6d170News04@avisoft.f9.co.uk>
          Martin <News04@avisoft.f9.co.uk> wrote:

> In article <61f8e2b75c.Paul@phorefaux>,
>    Paul Stewart <phorefaux@gmail.com> wrote:
>> Help Please!!!

>> I think I am probably misunderstanding something and so far appear
>> to be doing nothing but going around in circles.  I've searched
>> through CSA programmer archives on Google Groups also before
>> posting.

>> So I've started a task using SYS"Wimp_StartTask" That is working
>> fine.

>> Listening for message &808C2 (TaskWindow_Ego) to grab correct task
>> handle Again, working fine.

>> (I can have also tested &808C4 (TaskWindow_Morite) to kill the task)

>> Now I'm thinking I should be listening for &808C1
>> (TaskWindow_Output) to receive the contents of the TaskWindow.  Is
>> that correct?

> Yes, that is how you see the output to display yourself, interrogate,
> or lose.

> You can also send input to the TW by sending a TaskWindow_Input
> message.

> Remember to Ack where appropriate!

Well it's good to know my understanding is correct, so must be something 
else I'm not doing right.

Issue I have is that I am not receiving the &808C1 message.

I get the &808C3 when it has finished, but I also want the output that 
would usually be in the Task Window (if I was to manually run it, rather 
than run via Wimp_StartTask).


-- 
Paul Stewart
Sent from A9home running RISC OS 4.42

[toc] | [prev] | [next] | [standalone]


#6615

FromHarriet Bazley <harriet@bazleyfamily.co.uk>
Date2026-03-11 18:50 +0000
Message-ID<85de05b85c.harriet@bazleyfamily.co.uk>
In reply to#6614
On 11 Mar 2026 as I do recall,
          Paul Stewart  wrote:

> >> Now I'm thinking I should be listening for &808C1
> >> (TaskWindow_Output) to receive the contents of the TaskWindow.  Is
> >> that correct?
> 
> > Yes, that is how you see the output to display yourself, interrogate,
> > or lose.

[snip]

> Issue I have is that I am not receiving the &808C1 message.
> 
> I get the &808C3 when it has finished, but I also want the output that 
> would usually be in the Task Window (if I was to manually run it, rather 
> than run via Wimp_StartTask).
> 
I've never tried to intercept and display taskwindow output manually,
but is it possible that you have to register yourself as an official
'taskwindow handler' with the Wimp first in order to prevent its being
intercepted and displayed by Edit or StrongED or some other recognised
handler?

And - the usual question - have you added TaskWindow_Output to the list
of Wimp messages to be passed on to Wimp_Poll, or is it getting masked
out by default?

-- 
Harriet Bazley                     ==  Loyaulte me lie ==

He that would govern others, first should be master of himself.

[toc] | [prev] | [next] | [standalone]


#6616

FromPaul Stewart <phorefaux@gmail.com>
Date2026-03-11 19:42 +0000
Message-ID<88a00ab85c.Paul@phorefaux>
In reply to#6615
In message <85de05b85c.harriet@bazleyfamily.co.uk>
          Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

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

>>>> Now I'm thinking I should be listening for &808C1
>>>> (TaskWindow_Output) to receive the contents of the TaskWindow.  Is
>>>> that correct?
>> 
>>> Yes, that is how you see the output to display yourself, interrogate,
>>> or lose.

> [snip]

>> Issue I have is that I am not receiving the &808C1 message.
>> 
>> I get the &808C3 when it has finished, but I also want the output that
>> would usually be in the Task Window (if I was to manually run it, rather
>> than run via Wimp_StartTask).
>> 
> I've never tried to intercept and display taskwindow output manually,
> but is it possible that you have to register yourself as an official
> 'taskwindow handler' with the Wimp first in order to prevent its being
> intercepted and displayed by Edit or StrongED or some other recognised
> handler?

> And - the usual question - have you added TaskWindow_Output to the list
> of Wimp messages to be passed on to Wimp_Poll, or is it getting masked
> out by default?

Well at the moment I have added &808C0 - &808C6 to Wimp messages

Looking at PRM3, page 263,TaskWindow_Ouput  - this message is sent to the 
Parent when one of it's children has produced output.

I would have thought because the task has generated output into the task 
window (although the window is not open), that would register as output 
and therefore generate &808C1 message.  Or am I completely 
misunderstanding this?  Which would not surprise me as I am not the best 
at understanding the PRMs :(

-- 
Paul Stewart
Sent from A9home running RISC OS 4.42

[toc] | [prev] | [next] | [standalone]


#6617

FromMartin <News04@avisoft.f9.co.uk>
Date2026-03-11 23:28 +0000
Message-ID<5cb81f53e1News04@avisoft.f9.co.uk>
In reply to#6616
In article <88a00ab85c.Paul@phorefaux>,
   Paul Stewart <phorefaux@gmail.com> wrote:
> In message <85de05b85c.harriet@bazleyfamily.co.uk>
>           Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

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

> >>>> Now I'm thinking I should be listening for &808C1
> >>>> (TaskWindow_Output) to receive the contents of the TaskWindow.
> >>>>  Is that correct?
> >> 
> >>> Yes, that is how you see the output to display yourself,
> >>> interrogate, or lose.

> > [snip]

> >> Issue I have is that I am not receiving the &808C1 message.
> >> 
> >> I get the &808C3 when it has finished, but I also want the
> >> output that would usually be in the Task Window (if I was to
> >> manually run it, rather than run via Wimp_StartTask).
> >> 
> > I've never tried to intercept and display taskwindow output
> > manually, but is it possible that you have to register yourself
> > as an official 'taskwindow handler' with the Wimp first in order
> > to prevent its being intercepted and displayed by Edit or
> > StrongED or some other recognised handler?

> > And - the usual question - have you added TaskWindow_Output to
> > the list of Wimp messages to be passed on to Wimp_Poll, or is it
> > getting masked out by default?

> Well at the moment I have added &808C0 - &808C6 to Wimp messages

> Looking at PRM3, page 263,TaskWindow_Ouput  - this message is sent
> to the Parent when one of it's children has produced output.

What command have you passed to the TaskWindow command?
What did you provide for the -task and -txt values?

-- 
Martin Avison 
Note that unfortunately this email address will become invalid
without notice if (when) any spam is received. 

[toc] | [prev] | [next] | [standalone]


#6618

FromPaul Stewart <phorefaux@gmail.com>
Date2026-03-12 20:32 +0000
Message-ID<8c0b93b85c.Paul@phorefaux>
In reply to#6617
In message <5cb81f53e1News04@avisoft.f9.co.uk>
          Martin <News04@avisoft.f9.co.uk> wrote:

> In article <88a00ab85c.Paul@phorefaux>,
>    Paul Stewart <phorefaux@gmail.com> wrote:
>> In message <85de05b85c.harriet@bazleyfamily.co.uk>
>>           Harriet Bazley <harriet@bazleyfamily.co.uk> wrote:

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

>>>>>> Now I'm thinking I should be listening for &808C1
>>>>>> (TaskWindow_Output) to receive the contents of the TaskWindow.
>>>>>>  Is that correct?
>>>> 
>>>>> Yes, that is how you see the output to display yourself,
>>>>> interrogate, or lose.

>>> [snip]

>>>> Issue I have is that I am not receiving the &808C1 message.
>>>> 
>>>> I get the &808C3 when it has finished, but I also want the
>>>> output that would usually be in the Task Window (if I was to
>>>> manually run it, rather than run via Wimp_StartTask).
>>>> 
>>> I've never tried to intercept and display taskwindow output
>>> manually, but is it possible that you have to register yourself
>>> as an official 'taskwindow handler' with the Wimp first in order
>>> to prevent its being intercepted and displayed by Edit or
>>> StrongED or some other recognised handler?

>>> And - the usual question - have you added TaskWindow_Output to
>>> the list of Wimp messages to be passed on to Wimp_Poll, or is it
>>> getting masked out by default?

>> Well at the moment I have added &808C0 - &808C6 to Wimp messages

>> Looking at PRM3, page 263,TaskWindow_Ouput  - this message is sent
>> to the Parent when one of it's children has produced output.

> What command have you passed to the TaskWindow command?
> What did you provide for the -task and -txt values?

Hi all, thanks for your replies and Martin, thanks for the email.

After going down what feels like a couple of rather large rabbit holes, I 
finally go the bottom of the issue.

My TaskWindow routines were fine.
The issue was with the command I was passing to Wimp_StartTask.

I was using a flag to generate a log file.  I had not appreciated that the 
flag was log file or task window output.

-- 
Paul Stewart
Sent from A9home running RISC OS 4.42

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.acorn.programmer


csiph-web