🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13288

Need help dealing with the clipboard

#13288
From: paul.j.maioriello
Date: Wed, 03 Jan 1990 02:22
30 lines
1641 bytes
Hi Amigaoids;

I have been trying to write a program that monitors the Amiga clipboard.device.
This program will try to tell wehn a program has posted to the
default clipboard unit.  While I currently have the program working,
I know it is not working in the proper Amiga fashion.  Basically, it opens
the clipboard device sets up the iorequest structure and message ports and
calls SendIO. The problem is that SendIO return immediately, even if there
is nothing in the clip.  This means that the only way that I can monitor
things is by doing the SendIO in a loop.  I would like to be able to Wait()
until there is something in the clip.  I'm I on the right track here, or
what?

Also, it seems that the clipboard.device doesn't know about all the
commands that good exec devices are supposed to.
When I try to send it a CMD_CLEAR, DoIO returns a -3 which I believe indicates
an unimplemented instruction.  Several of the other "standard"
commands detailed on page 44 of the exec ROM Kernel manual also seem
to be unimplemented by the clipboard device.  Is this truly the case
or am I (once again) messing something up?




Thanks in advance to anyone who can help


Paul M
cbnewsj!paulm		Currently still "busy waiting" for the clipboard!!!
Technical Details
Message-ID: <3126@cbnewsj.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!samsung!cs.utexas.edu!rutgers!att!cbnewsj!paulm

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!samsung!cs.utexas.edu!rutgers!att!cbnewsj!paulm
From: paulm@cbnewsj.ATT.COM (paul.j.maioriello)
Newsgroups: comp.sys.amiga.tech
Subject: Need help dealing with the clipboard
Message-ID: <3126@cbnewsj.ATT.COM>
Date: 3 Jan 90 02:22:53 GMT
Organization: AT&T Bell Laboratories
Lines: 30