AROS and AREXX

Posted by ALB42 on 16. März 2023No Comments

Some days before I made a Video how AmiFox and AmiTube/MUIMapparium will work together in the next AmiFox version. But that would not work for AROS, simply because the AROS MUI, named Zune does not support an AREXX Port as MUI does. But when I thought about, it should be not too hard to create an AREXX port yourself, in principle what you need to do:

  • Create an Message port (CreateMsgPort)
  • Name that Message port for example „AmiTube.1“, MUI/Zune already supplies such a name in the Base property of the application class (ln_Name)
  • Register that named Message port to the system (AddPort)
  • Read Messages from the port (GetMsg)
  • check if that message is a commando (RXCOMM)
  • Handle that Message (RexxMsg)
  • Reply the message to the sender (ReplyMsg)

Thats all, (of course in destroy you need to remove the msgport from the system and destroy it). But overall very simple. I tried it for i386 AROS and it works very nicely I can send AREXX messages from AmiFox to AmiTube as in Amiga. Now I really think why they did not implement that in Zune, if it’s that simple, maybe I forget something.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert