• TaskWindow Messages - output

    From Paul Stewart@3:633/10 to All on Wednesday, March 11, 2026 12:29:24
    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

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Martin@3:633/10 to All on Wednesday, March 11, 2026 13:11:26
    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.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Paul Stewart@3:633/10 to All on Wednesday, March 11, 2026 17:51:42
    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

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Harriet Bazley@3:633/10 to All on Wednesday, March 11, 2026 18:50:36
    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.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Paul Stewart@3:633/10 to All on Wednesday, March 11, 2026 19:42:34
    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

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Martin@3:633/10 to All on Wednesday, March 11, 2026 23:28:42
    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.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Paul Stewart@3:633/10 to All on Thursday, March 12, 2026 20:32:37
    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

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)