Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #5964 > unrolled thread
| Started by | Alan Adams <alan@adamshome.org.uk> |
|---|---|
| First post | 2020-02-12 15:41 +0000 |
| Last post | 2020-02-13 09:00 +0000 |
| Articles | 15 — 5 participants |
Back to article view | Back to comp.sys.acorn.programmer
How to send message to another application Alan Adams <alan@adamshome.org.uk> - 2020-02-12 15:41 +0000
Re: How to send message to another application Martin <News03@avisoft.f9.co.uk> - 2020-02-12 18:01 +0000
Re: How to send message to another application Alan Adams <alan@adamshome.org.uk> - 2020-02-12 21:35 +0000
Re: How to send message to another application Martin <News03@avisoft.f9.co.uk> - 2020-02-12 23:19 +0000
Re: How to send message to another application Alan Adams <alan@adamshome.org.uk> - 2020-02-13 11:03 +0000
Re: How to send message to another application Matthew Phillips <spam2011m@yahoo.co.uk> - 2020-02-13 21:06 +0000
Re: How to send message to another application Alan Adams <alan@adamshome.org.uk> - 2020-02-13 15:04 +0000
Re: How to send message to another application Martin <News03@avisoft.f9.co.uk> - 2020-02-13 17:45 +0000
Re: How to send message to another application Alan Adams <alan@adamshome.org.uk> - 2020-02-13 18:40 +0000
Re: How to send message to another application Martin <News03@avisoft.f9.co.uk> - 2020-02-13 23:26 +0000
Re: How to send message to another application Alan Adams <alan@adamshome.org.uk> - 2020-02-14 09:30 +0000
Re: How to send message to another application Steve Fryatt <news@stevefryatt.org.uk> - 2020-02-14 15:41 +0000
Re: How to send message to another application Alan Adams <alan@adamshome.org.uk> - 2020-02-14 16:56 +0000
Re: How to send message to another application druck <news@druck.org.uk> - 2020-02-12 20:08 +0000
Re: How to send message to another application Matthew Phillips <spam2011m@yahoo.co.uk> - 2020-02-13 09:00 +0000
| From | Alan Adams <alan@adamshome.org.uk> |
|---|---|
| Date | 2020-02-12 15:41 +0000 |
| Subject | How to send message to another application |
| Message-ID | <129a344158.Alan.Adams@ArmX6.adamshome.org.uk> |
Hi i'm trying to work around a limitation of Pipedream. Briefly I want to create a csv file and have Pipedream open it automatically. If I double-click the file when Pipedream isn't running, it works. If I double-click when Pipedream is running, the banner appears again, then nothing more happens. I think Pipedreasm is trying to open a second copy of itself, and quitting when it discovers this. Instead I want my application to ensure PipeDream is running, then use DataSava and DataLoad messages to simulate draging a file to its iconbar icon. This requires me, as far as I can see from the manuals, to know the icon number and window handle. The window handle should be -2 I believe, but how do I find the icon number. I can find the task handle using Task_EnumerateTasks looking for the name. The message protocol has an option to send the message to the task handle. Do I need the icon number in this case? If not, what do I put in message block fields 20 amnd 24 (and indeed 28 and 32 as well)? -- Alan Adams, from Northamptonshire alan@adamshome.org.uk http://www.nckc.org.uk/
[toc] | [next] | [standalone]
| From | Martin <News03@avisoft.f9.co.uk> |
|---|---|
| Date | 2020-02-12 18:01 +0000 |
| Message-ID | <584141735fNews03@avisoft.f9.co.uk> |
| In reply to | #5964 |
On 12 Feb in article <129a344158.Alan.Adams@ArmX6.adamshome.org.uk>, Alan Adams <alan@adamshome.org.uk> wrote: > Hi > i'm trying to work around a limitation of Pipedream. > Briefly I want to create a csv file and have Pipedream open it > automatically. > If I double-click the file when Pipedream isn't running, it works. > If I double-click when Pipedream is running, the banner appears > again, then nothing more happens. I think Pipedreasm is trying to > open a second copy of itself, and quitting when it discovers this. > Instead I want my application to ensure PipeDream is running, then > use DataSava and DataLoad messages to simulate draging a file to > its iconbar icon. This requires me, as far as I can see from the > manuals, to know the icon number and window handle. The window > handle should be -2 I believe, but how do I find the icon number. > I can find the task handle using Task_EnumerateTasks looking for > the name. > The message protocol has an option to send the message to the task > handle. Do I need the icon number in this case? If not, what do I > put in message block fields 20 amnd 24 (and indeed 28 and 32 as > well)? Before you start on a program to bypass a 'limitation' (or even bug) or Pipedream, have you asked on the pipedream mailing list about this? Stuart is usually around, and if it is a bug may fix it, or confirm it is a limitation. -- Martin Avison Note that unfortunately this email address will become invalid without notice if (when) any spam is received.
[toc] | [prev] | [next] | [standalone]
| From | Alan Adams <alan@adamshome.org.uk> |
|---|---|
| Date | 2020-02-12 21:35 +0000 |
| Message-ID | <edfd544158.Alan.Adams@ArmX6.adamshome.org.uk> |
| In reply to | #5965 |
In message <584141735fNews03@avisoft.f9.co.uk>
Martin <News03@avisoft.f9.co.uk> wrote:
> On 12 Feb in article <129a344158.Alan.Adams@ArmX6.adamshome.org.uk>,
> Alan Adams <alan@adamshome.org.uk> wrote:
>> Hi
>> i'm trying to work around a limitation of Pipedream.
>> Briefly I want to create a csv file and have Pipedream open it
>> automatically.
>> If I double-click the file when Pipedream isn't running, it works.
>> If I double-click when Pipedream is running, the banner appears
>> again, then nothing more happens. I think Pipedreasm is trying to
>> open a second copy of itself, and quitting when it discovers this.
>> Instead I want my application to ensure PipeDream is running, then
>> use DataSava and DataLoad messages to simulate draging a file to
>> its iconbar icon. This requires me, as far as I can see from the
>> manuals, to know the icon number and window handle. The window
>> handle should be -2 I believe, but how do I find the icon number.
>> I can find the task handle using Task_EnumerateTasks looking for
>> the name.
>> The message protocol has an option to send the message to the task
>> handle. Do I need the icon number in this case? If not, what do I
>> put in message block fields 20 amnd 24 (and indeed 28 and 32 as
>> well)?
> Before you start on a program to bypass a 'limitation' (or even bug)
> or Pipedream, have you asked on the pipedream mailing list about this?
Is that the same list as Fireworkz, on google groups? If so, I've applied
to join it so I can ask a question, but haven't yet been accepted. As my
copy of Fireworkz is unregistererd, bundled with the ARMX6, it may be they
won't accept me.
> Stuart is usually around, and if it is a bug may fix it, or confirm
> it is a limitation.
--
Alan Adams, from Northamptonshire
alan@adamshome.org.uk
http://www.nckc.org.uk/
[toc] | [prev] | [next] | [standalone]
| From | Martin <News03@avisoft.f9.co.uk> |
|---|---|
| Date | 2020-02-12 23:19 +0000 |
| Message-ID | <58415e9232News03@avisoft.f9.co.uk> |
| In reply to | #5967 |
On 12 Feb in article <edfd544158.Alan.Adams@ArmX6.adamshome.org.uk>, Alan Adams <alan@adamshome.org.uk> wrote: > In message <584141735fNews03@avisoft.f9.co.uk> > Martin <News03@avisoft.f9.co.uk> wrote: > > On 12 Feb in article > > <129a344158.Alan.Adams@ArmX6.adamshome.org.uk>, Alan Adams > > <alan@adamshome.org.uk> wrote: > >> i'm trying to work around a limitation of Pipedream. [Snip] > > Before you start on a program to bypass a 'limitation' (or even > > bug) or Pipedream, have you asked on the pipedream mailing list > > about this? > Is that the same list as Fireworkz, on google groups? If so, I've > applied to join it so I can ask a question, but haven't yet been > accepted. As my copy of Fireworkz is unregistererd, bundled with > the ARMX6, it may be they won't accept me. As Fireworkz is now freely available, anyone should be able to join. Perhaps Stuart needs to accept you. The PipeDream list is different - see http://croftnuisk.co.uk/coltsoft/pipedream/ If you have problems with them, I could post to the FW list for you, but I am not a member of the PD one. Martin -- Martin Avison Note that unfortunately this email address will become invalid without notice if (when) any spam is received.
[toc] | [prev] | [next] | [standalone]
| From | Alan Adams <alan@adamshome.org.uk> |
|---|---|
| Date | 2020-02-13 11:03 +0000 |
| Message-ID | <5c039f4158.Alan.Adams@ArmX6.adamshome.org.uk> |
| In reply to | #5968 |
Hi
Thanks to everyone who has replied.
I'll start with WindOpen as it's an easy test to try.
I have low expectations of Matthew's suggestions, because it relies on
Pipedream's internal workings, and the reason for this post in the first
place is that ther's something suspicious about thew way Pipedream works.
I'll alos try joining the pipedream list as I use that a lot more than
Fireworkz. I only use the latter to format Pipedream sheets for pretty
printing.
I'll update when I have more results.
Alan
In message <58415e9232News03@avisoft.f9.co.uk>
Martin <News03@avisoft.f9.co.uk> wrote:
> On 12 Feb in article <edfd544158.Alan.Adams@ArmX6.adamshome.org.uk>,
> Alan Adams <alan@adamshome.org.uk> wrote:
>> In message <584141735fNews03@avisoft.f9.co.uk>
>> Martin <News03@avisoft.f9.co.uk> wrote:
>>> On 12 Feb in article
>>> <129a344158.Alan.Adams@ArmX6.adamshome.org.uk>, Alan Adams
>>> <alan@adamshome.org.uk> wrote:
>>>> i'm trying to work around a limitation of Pipedream.
> [Snip]
>>> Before you start on a program to bypass a 'limitation' (or even
>>> bug) or Pipedream, have you asked on the pipedream mailing list
>>> about this?
>> Is that the same list as Fireworkz, on google groups? If so, I've
>> applied to join it so I can ask a question, but haven't yet been
>> accepted. As my copy of Fireworkz is unregistererd, bundled with
>> the ARMX6, it may be they won't accept me.
> As Fireworkz is now freely available, anyone should be able to join.
> Perhaps Stuart needs to accept you.
> The PipeDream list is different - see
> http://croftnuisk.co.uk/coltsoft/pipedream/
> If you have problems with them, I could post to the FW list for you,
> but I am not a member of the PD one.
> Martin
--
Alan Adams, from Northamptonshire
alan@adamshome.org.uk
http://www.nckc.org.uk/
[toc] | [prev] | [next] | [standalone]
| From | Matthew Phillips <spam2011m@yahoo.co.uk> |
|---|---|
| Date | 2020-02-13 21:06 +0000 |
| Message-ID | <bb34d64158.Matthew@sinenomine.freeserve.co.uk> |
| In reply to | #5970 |
In message <5c039f4158.Alan.Adams@ArmX6.adamshome.org.uk> on 13 Feb 2020 Alan Adams wrote: > I'll start with WindOpen as it's an easy test to try. Good idea. > I have low expectations of Matthew's suggestions, because it relies on > Pipedream's internal workings, and the reason for this post in the first > place is that ther's something suspicious about thew way Pipedream works. It doesn't rely much on Pipedream's internals. The odd behaviour you describe certainly has nothing to do with how Pipedream responds to Message_DataLoad. If Pipedream is running and you double-click the CSV field, Pipedream will receive Message_DataOpen. It clearly does not respond to this, because you get the Pipedream loading banner. That shows that the Alias$@RunType for CSV files has been invoked, and (probably) Pipedream has been run with the CSV filename passed to it as part of the command line. Message_DataOpen is not used in the DataSave/DataLoad sequence, and nor is the Alias$@RunType used so my suggestion won't trigger the same behaviour. It sounds to me like Pipedream has code to check if it is already running when it starts up, and if it is already running, the new copy quits without inspecting its command line. In the few applications I have written that do this sort of check, I ensure that the new task sends a message to the old task to pass the filename across so that the copy which is already running can handle the file. That's probably how Pipedream needs to be modified. -- Matthew Phillips Durham
[toc] | [prev] | [next] | [standalone]
| From | Alan Adams <alan@adamshome.org.uk> |
|---|---|
| Date | 2020-02-13 15:04 +0000 |
| Message-ID | <d71ab54158.Alan.Adams@ArmX6.adamshome.org.uk> |
| In reply to | #5968 |
In message <58415e9232News03@avisoft.f9.co.uk>
Martin <News03@avisoft.f9.co.uk> wrote:
> On 12 Feb in article <edfd544158.Alan.Adams@ArmX6.adamshome.org.uk>,
> Alan Adams <alan@adamshome.org.uk> wrote:
>> In message <584141735fNews03@avisoft.f9.co.uk>
>> Martin <News03@avisoft.f9.co.uk> wrote:
>>> On 12 Feb in article
>>> <129a344158.Alan.Adams@ArmX6.adamshome.org.uk>, Alan Adams
>>> <alan@adamshome.org.uk> wrote:
>>>> i'm trying to work around a limitation of Pipedream.
> [Snip]
>>> Before you start on a program to bypass a 'limitation' (or even
>>> bug) or Pipedream, have you asked on the pipedream mailing list
>>> about this?
>> Is that the same list as Fireworkz, on google groups? If so, I've
>> applied to join it so I can ask a question, but haven't yet been
>> accepted. As my copy of Fireworkz is unregistererd, bundled with
>> the ARMX6, it may be they won't accept me.
> As Fireworkz is now freely available, anyone should be able to join.
> Perhaps Stuart needs to accept you.
> The PipeDream list is different - see
> http://croftnuisk.co.uk/coltsoft/pipedream/
I've tried that, but it needs me to have an existing google account.
I'm fussy about how much personal information I give to Google, and I'm
not going to create an account there.
I've got this working via Druck's WindOpen module, so I'll leave it there.
> If you have problems with them, I could post to the FW list for you,
> but I am not a member of the PD one.
> Martin
--
Alan Adams, from Northamptonshire
alan@adamshome.org.uk
http://www.nckc.org.uk/
[toc] | [prev] | [next] | [standalone]
| From | Martin <News03@avisoft.f9.co.uk> |
|---|---|
| Date | 2020-02-13 17:45 +0000 |
| Message-ID | <5841c3d7c1News03@avisoft.f9.co.uk> |
| In reply to | #5971 |
On 13 Feb in article <d71ab54158.Alan.Adams@ArmX6.adamshome.org.uk>, Alan Adams <alan@adamshome.org.uk> wrote: > > As Fireworkz is now freely available, anyone should be able to > > join. Perhaps Stuart needs to accept you. > > The PipeDream list is different - see > > http://croftnuisk.co.uk/coltsoft/pipedream/ > I've tried that, but it needs me to have an existing google account. Does it? My email for the FW one is one of my addresses, not one of google's. > I'm fussy about how much personal information I give to Google, and > I'm not going to create an account there. Don't blame you! > I've got this working via Druck's WindOpen module, so I'll leave it > there. Yes, WindOpen can be very useful. -- Martin Avison Note that unfortunately this email address will become invalid without notice if (when) any spam is received.
[toc] | [prev] | [next] | [standalone]
| From | Alan Adams <alan@adamshome.org.uk> |
|---|---|
| Date | 2020-02-13 18:40 +0000 |
| Message-ID | <5fd1c84158.Alan.Adams@ArmX6.adamshome.org.uk> |
| In reply to | #5972 |
In message <5841c3d7c1News03@avisoft.f9.co.uk>
Martin <News03@avisoft.f9.co.uk> wrote:
> On 13 Feb in article <d71ab54158.Alan.Adams@ArmX6.adamshome.org.uk>,
> Alan Adams <alan@adamshome.org.uk> wrote:
>>> As Fireworkz is now freely available, anyone should be able to
>>> join. Perhaps Stuart needs to accept you.
>>> The PipeDream list is different - see
>>> http://croftnuisk.co.uk/coltsoft/pipedream/
>> I've tried that, but it needs me to have an existing google account.
> Does it? My email for the FW one is one of my addresses, not one of
> google's.
It comes about because you go to the group, and request to join. You get
accepted, and then when you visit are asked for an email address and
password. No password has been issued.
You then go through the steps to "recover your account" and at the end are
told "we can't verify that you own that email address".
Verifying it requires providing information previously recorded against a
Google account.
>> I'm fussy about how much personal information I give to Google, and
>> I'm not going to create an account there.
> Don't blame you!
>> I've got this working via Druck's WindOpen module, so I'll leave it
>> there.
> Yes, WindOpen can be very useful.
--
Alan Adams, from Northamptonshire
alan@adamshome.org.uk
http://www.nckc.org.uk/
[toc] | [prev] | [next] | [standalone]
| From | Martin <News03@avisoft.f9.co.uk> |
|---|---|
| Date | 2020-02-13 23:26 +0000 |
| Message-ID | <5841e2f97fNews03@avisoft.f9.co.uk> |
| In reply to | #5973 |
On 13 Feb in article <5fd1c84158.Alan.Adams@ArmX6.adamshome.org.uk>,
Alan Adams <alan@adamshome.org.uk> wrote:
> In message <5841c3d7c1News03@avisoft.f9.co.uk>
> Martin <News03@avisoft.f9.co.uk> wrote:
> > On 13 Feb in article <d71ab54158.Alan.Adams@ArmX6.adamshome.org.uk>,
> > Alan Adams <alan@adamshome.org.uk> wrote:
> >>> As Fireworkz is now freely available, anyone should be able to
> >>> join. Perhaps Stuart needs to accept you.
> >>> The PipeDream list is different - see
> >>> http://croftnuisk.co.uk/coltsoft/pipedream/
> >> I've tried that, but it needs me to have an existing google
> >> account.
> > Does it? My email for the FW one is one of my addresses, not one
> > of google's.
> It comes about because you go to the group, and request to join.
> You get accepted, and then when you visit are asked for an email
> address and password. No password has been issued.
> You then go through the steps to "recover your account" and at the
> end are told "we can't verify that you own that email address".
> Verifying it requires providing information previously recorded
> against a Google account.
Ahah! Did you go to https://groups.google.com/forum/ ?
Perhaps you should try...
To subscribe to this restricted group e-mail:
colton-software-pipedream+subscribe@googlegroups.com
--
Martin Avison
Note that unfortunately this email address will become invalid
without notice if (when) any spam is received.
[toc] | [prev] | [next] | [standalone]
| From | Alan Adams <alan@adamshome.org.uk> |
|---|---|
| Date | 2020-02-14 09:30 +0000 |
| Message-ID | <d0581a4258.Alan.Adams@ArmX6.adamshome.org.uk> |
| In reply to | #5975 |
In message <5841e2f97fNews03@avisoft.f9.co.uk>
Martin <News03@avisoft.f9.co.uk> wrote:
> On 13 Feb in article <5fd1c84158.Alan.Adams@ArmX6.adamshome.org.uk>,
> Alan Adams <alan@adamshome.org.uk> wrote:
>> In message <5841c3d7c1News03@avisoft.f9.co.uk>
>> Martin <News03@avisoft.f9.co.uk> wrote:
>>> On 13 Feb in article <d71ab54158.Alan.Adams@ArmX6.adamshome.org.uk>,
>>> Alan Adams <alan@adamshome.org.uk> wrote:
>>>>> As Fireworkz is now freely available, anyone should be able to
>>>>> join. Perhaps Stuart needs to accept you.
>>>>> The PipeDream list is different - see
>>>>> http://croftnuisk.co.uk/coltsoft/pipedream/
>>>> I've tried that, but it needs me to have an existing google
>>>> account.
>>> Does it? My email for the FW one is one of my addresses, not one
>>> of google's.
>> It comes about because you go to the group, and request to join.
>> You get accepted, and then when you visit are asked for an email
>> address and password. No password has been issued.
>> You then go through the steps to "recover your account" and at the
>> end are told "we can't verify that you own that email address".
>> Verifying it requires providing information previously recorded
>> against a Google account.
> Ahah! Did you go to https://groups.google.com/forum/ ?
> Perhaps you should try...
> To subscribe to this restricted group e-mail:
> colton-software-pipedream+subscribe@googlegroups.com
I emailed that. I got back:
Hello alan@adamshome.org.uk,
We have received a request to join the group Colton Software PipeDream.
colton-software-pipedream requires owner approval for join requests. If
you would like to continue with your join request, reply to this email or
visit the following confirmation URL:
https://groups.google.com/group/colton-software-pipedream/subscribe
I went there, and filled in the details to make a join request
I got back an email accepting the request.
Then I tried to log in ...
--
Alan Adams, from Northamptonshire
alan@adamshome.org.uk
http://www.nckc.org.uk/
[toc] | [prev] | [next] | [standalone]
| From | Steve Fryatt <news@stevefryatt.org.uk> |
|---|---|
| Date | 2020-02-14 15:41 +0000 |
| Message-ID | <mpro.q5p7kk01boiut01vx.news@stevefryatt.org.uk> |
| In reply to | #5976 |
On 14 Feb, Alan Adams wrote in message
<d0581a4258.Alan.Adams@ArmX6.adamshome.org.uk>:
> I got back an email accepting the request.
>
> Then I tried to log in ...
Log in to what? It's an email list, isn't it?
--
Steve Fryatt - Leeds, England
http://www.stevefryatt.org.uk/
[toc] | [prev] | [next] | [standalone]
| From | Alan Adams <alan@adamshome.org.uk> |
|---|---|
| Date | 2020-02-14 16:56 +0000 |
| Message-ID | <b51c434258.Alan.Adams@ArmX6.adamshome.org.uk> |
| In reply to | #5978 |
In message <mpro.q5p7kk01boiut01vx.news@stevefryatt.org.uk>
Steve Fryatt <news@stevefryatt.org.uk> wrote:
> On 14 Feb, Alan Adams wrote in message
> <d0581a4258.Alan.Adams@ArmX6.adamshome.org.uk>:
>> I got back an email accepting the request.
>>
>> Then I tried to log in ...
> Log in to what? It's an email list, isn't it?
No, it seems to have moved to google Groups. That's where you get directed
after mailing the list with a Subscribe request.
--
Alan Adams, from Northamptonshire
alan@adamshome.org.uk
http://www.nckc.org.uk/
[toc] | [prev] | [next] | [standalone]
| From | druck <news@druck.org.uk> |
|---|---|
| Date | 2020-02-12 20:08 +0000 |
| Message-ID | <r21lvj$lb6$1@dont-email.me> |
| In reply to | #5964 |
On 12/02/2020 15:41, Alan Adams wrote: > Briefly I want to create a csv file and have Pipedream open it > automatically. > > If I double-click the file when Pipedream isn't running, it works. If I > double-click when Pipedream is running, the banner appears again, then > nothing more happens. I think Pipedreasm is trying to open a second copy > of itself, and quitting when it discovers this. > > Instead I want my application to ensure PipeDream is running, then use > DataSava and DataLoad messages to simulate draging a file to its iconbar > icon. This requires me, as far as I can see from the manuals, to know the > icon number and window handle. The window handle should be -2 I believe, > but how do I find the icon number. > > I can find the task handle using Task_EnumerateTasks looking for the name. > > The message protocol has an option to send the message to the task handle. > Do I need the icon number in this case? If not, what do I put in message > block fields 20 amnd 24 (and indeed 28 and 32 as well)? Try my WindOpen module from http://www.armclub.org.uk/free as this does exacly what you describe, using a *command. You should be able to do a:- *WO_OpenWind PipeDream $.Path.CSVFile (Check the app name in Task manager, and give the correct path to the file) If you want the window to open at a fixed location on screen, supply the bottom left and top right coordinates as the next 4 parameters. If using a program you can execute the command via OSCLI. ---druck
[toc] | [prev] | [next] | [standalone]
| From | Matthew Phillips <spam2011m@yahoo.co.uk> |
|---|---|
| Date | 2020-02-13 09:00 +0000 |
| Message-ID | <a7b3934158.Matthew@sinenomine.freeserve.co.uk> |
| In reply to | #5964 |
In message <129a344158.Alan.Adams@ArmX6.adamshome.org.uk> on 12 Feb 2020 Alan Adams wrote: > Instead I want my application to ensure PipeDream is running, then use > DataSava and DataLoad messages to simulate draging a file to its iconbar > icon. This requires me, as far as I can see from the manuals, to know the > icon number and window handle. The window handle should be -2 I believe, > but how do I find the icon number. > > I can find the task handle using Task_EnumerateTasks looking for the name. > > The message protocol has an option to send the message to the task handle. > Do I need the icon number in this case? If not, what do I put in message > block fields 20 and 24 (and indeed 28 and 32 as well)? I agree with the other replies suggesting you should seek an improvement in PipeDream, or use the WindOpen module as suggested by druck, but in case neither of these works out here are some otehr thoughts. If you use Wimp_SendMessage with R2 set to PipeDream's task number then the Message_DataLoad will reach PipeDream. The question is, what it will do with it. (You don't need to start with Message_DataSave if you are loading a file from disc. The Filer doesn't.) The registers R2 and R3 in Wimp_SendMessage are used simply to determine which tasks will receive the message. The contents of the message is independent pf this. So you could fill in +20 with the window handle -2 as though the file had been dropped on the icon bar. If you are lucky, that's the only thing PipeDream will check -- unless it has two icons on the iconbar it is not going to be bothered about the value in +24, and probably will not examine +28 or +32 either. Whether that would work entirely depends on PipeDream's implementation details, and you cannot rely on this working for every application. If you are wanting to find out the icon number of an application on the iconbar, there is a trick you can use. This is employed within Impact. It's code I inherited from John Skingley: I do not know whether it was his original idea or whether this was a generally known technique. First of all, determine how many icons there are on the iconbar by calling Wimp_GetWindowInfo for the iconbar window, handle -2. Call the result n. Then loop through the icon numbers (let i range from 0 to n-1) and for each icon call Wimp_SendMessage with R0=19, R2=-2 and R3=i. Doesn't matter what is in the message block but R1 had probably better be valid. As documented in the PRM, using R0=19 when you're not actually acknowledging a message allows the task handle to be found as on returning from Wimp_SendMessage the value of R2 will be the task handle. For the iconbar this, unusually, will vary from one icon to the next. You can then use TaskManager_TaskNameFromHandle to look up the task name for the icon, and if it's PipeDream, break out of the loop. -- Matthew Phillips Durham
[toc] | [prev] | [standalone]
Back to top | Article view | comp.sys.acorn.programmer
csiph-web