DOpus (61/96)

From:Dave Clarke
Date:16 May 2001 at 12:14:05
Subject:[D5] Re: CDDAscript.dopus 1st version

Once upon a time, 16-May-01 04:48:11, Javier de las Rivas spoke thus about
'[D5] CDDAscript.dopus 1st version':

>Well think i finished, don't know if it's bullet proof, but here it is, if
>you want feel free to change or suggest whatever.

None of mine are bulletproof - why should yours be any different :^)

>1 question:
>Is there another way of wating for selecting a track instead of?

>DO UNTIL reproducir.count=1
> LISTER QUERY handle SELFILES STEM reproducir.
>END

>I know is a bit ugly programming, but i'm new to ARexx programing.

>another question this for dave clark:

>can you explain what this is, i can figure it waits for an event
>(doubleclick,...) but could you explain it these lines if you don't mind,
>if it's OT please reply to my addres.

What the hell - this list is running a bit slow anyway ;^)

> if waitpkt(myhandler) then do

After opening a message port, (called myhandler - see earlier in script), and
assigning it to our lister, we wait at this statement until a message packet
comes along.

> packet = getpkt(myhandler)

We assign the contents of message to a variable.

> if packet ~= '00000000'x then do

If the message packet wasn't empty we process the following lines:

> event = getarg(packet,0)
> fname = getarg(packet,2)
> arg3 = getarg(packet,3)

We extract the arguments we require from within the message packet, (the
arguments sent depend upon the event - look in the DOpus5 ARexx guide for a
list of both).

Which we then process using a simple SELECT branch.

> select
> when event = 'inactive' then leave.....

Dave



_--_|\ Dave Clarke | Four Wheel Drive: - Helps you get stuck |
/ \ | faster, harder, further from help.|
\_.--.*/ <-Melbourne | Powered by: A3000 '060/50+604/180 138MB |
v bj73@cryogen.com | P-IV/Concierto/Pablo/Paloma |


A film star might drive a Celebrity.



Email majordomo@lss.com.au with 'help' in the body for help.
Members posting binaries to the mailing list will be removed!