Lister Wait

back to section start!

 ArcDir 

  The  lister wait  command instructs DOpus to wait until the
lister is idle before continuing with the ARexx script.

  This is sometimes necessary because some of the lister operations can take
a short while to complete and any commands sent to the lister while it isn't
idle will be lost.

  The command will wait for two seconds if the lister is idle, if you don't
want this delay, then you can add the QUICK keyword which will cause the
command to return immediately if the lister is idle.

  Example:


 /* ListerWait.dopus5 */ 
lf = '0a'x
options results
address 'DOPUS.1'
dopus front
lister new "DOpus5:Images/"
handle = result
text = 'We didn''t wait, so the requester'||lf||,
       'is not over the center of the'||lf||,
       'lister.'
lister request handle '"'text'" OK'
address command wait 3
lister close handle
address command wait 1
lister new "DOpus5:Images/"
handle = result
lister wait handle
text = 'We waited this time, so the'||lf||,
       'requester is over the center'||lf||,
       'of the lister.'
lister request handle '"'text'" OK'
address command wait 3
lister close handle
dopus back
exit

DOpus PLUS - giving you that bit extra...