Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 15 Mar 2006 15:58:20 -0800 (PST)
I'm not very good with Arexx, so please excuse what is probably a very obvious question to some of you.
My question is: How can I assign ARexx return information to a variable or a string that I can use in Hollywood?
Example: The OS4 Mixer allows you to use the ARexx command QUERYCARDS to find what cards are installed. But how can I get this information to Hollywood?
[15 Mar 2006] Using ARexx Return Info in a Hollywood Script
- airsoftsoftwair
- Posts: 5914
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
[20 Mar 2006] Re: Using ARexx Return Info in a Hollywood Script
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 20 Mar 2006 10:14:37 +0100
Hi Paul
Hollywood does not currently have an ARexx interface. But that is planned for the next version. Until then, do the following:
1) Create an ARexx script that calls QUERYCARDS
2) Write the return values of that call to tmp file, e.g. T:CARDS
3) Open that file with Hollywood, read the contents, and delete it
Pseudo code:
That should do the job quite well.
Hi Paul
Hollywood does not currently have an ARexx interface. But that is planned for the next version. Until then, do the following:
1) Create an ARexx script that calls QUERYCARDS
2) Write the return values of that call to tmp file, e.g. T:CARDS
3) Open that file with Hollywood, read the contents, and delete it
Pseudo code:
Code: Select all
Execute("rx querycards.rexx") ; execute querycards.rexx
OpenFile(1, "T:CARDS", #MODE_READ) ; open file
While Not Eof(1)
cards$[k] = ReadLine(1)
k=k+1
Wend
CloseFile(1)
DeleteFile("T:CARDS")
[29 Mar 2006] Re: Using ARexx Return Info in a Hollywood Script
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 29 Mar 2006 10:07:50 +0100
Hello Rev.!
I tried miniampdeluxe from OS4depot (1.1B), but it is stops after an "Could not find interval function 3! ... current line 331" error message.
Maybe I am using a wrong version of Amplifier (2.10).
May I ask you to put some info to the readme about Amplifier. I have not had used this stuff before, and I had to search it.
Hello Rev.!
I tried miniampdeluxe from OS4depot (1.1B), but it is stops after an "Could not find interval function 3! ... current line 331" error message.
Code: Select all
The script generated the following output:
3 *-* address AMPLIFIER.1 'Query Label';
+++ Command returned 10
May I ask you to put some info to the readme about Amplifier. I have not had used this stuff before, and I had to search it.