From: | Ilkka Lehtoranta |
Date: | 31 Aug 2000 at 19:55:51 |
Subject: | Re: OS3/3.5 Workbench Test. |
Hello Colin
On 31-Elo-00, you wrote:
CW> The only problem I had was if I "run >nil: s:batchfile"
CW> from the user startup or where ever, when it opens
CW> it's 1 pixel window, it stops iprefs/loadwb from doing it's stuff...
AFAIK this is because your window is open but Intuition is going
to reopen the WB screen. AFAIR there is a notify mechanism to
detect this... but I have forgotten how.
CW> while( ! FindPort("WORKBENCH"))
CW> Delay(50L);
CW>
CW> until it found it, Presto !!, no more problems,
CW> UNTIL I tried it on a WB3.1 installation......
CW>
CW> WB3.1 doesn't have a port called "WORKBENCH", Hmmmm.....
Because WB 3.1 and olders have no ARexx port...
CW> So I did a: FindTask("Workbench") instead,
CW> as the "Workbench" task exists on both OS versions....
CW>
CW> The problem is, it seems a "messy" way of doing this.....
You can always check workbench.library version... Use FindPort()
for V44+, FindTask() for others...
CW> Is there a SIMPLE way of getting a message port up to receive
CW> diskchange messages without opening a window in the first place...
Probably you can use input.device... I don't know about usefulness since
I haven't tried but seems to be your solution.