🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Intuition Impersonation

#11559
From: Mark Williams
Date: Wed, 22 Feb 1989 22:08
35 lines
2228 bytes
I was wondering if I could get a little feedback on this...

I have started to write a program which basically opens a message
port for ARexx messages and reads in commands.  These commands can
be window selection commands, mouse event commands, keybord event commands,
menu event commands, and the like.  I am trying to make it possible to
control programs which do not support ARexx by sending Intuition messages
to windows, i.e., pretending to be Intuition.  For example, this program
would allow a user to control a paint program through commands such as
'MOUSE DELTA 5 -5', 'CLICK LEFT DOWN', etc., sent through the ARexx port.
I would like to know two things:

1)  Is sending Intuition messages to windows whose associated tasks aren't
aware of it considered "nice"?

2)  Is there an easier way to accomplish this than essentially rewriting
the Intuition code which formulates these messages depending on the IDCMP
flags for the given window?  I want to be able to allow the user to retain
control of the keyboard and mouse while the window(s) receive the event
messages, so I don't want to take an approach like that taken by "journal".

Any help would be greatly appreciated.  Thanks.

---------------------------------------------------------------------------
Mark Williams            wmark@cory@ucbvax  

All expressed opinions are mere conglomerations of recorded sensual data
with frequent occasions of random inaccuracies.

"Sometimes the light... can play tricks on the *eyes*..."

  -- Balding, country sheriff to distraught heroine in all bad horror
     movies since the dawn of time
---------------------------------------------------------------------------
Technical Details
Message-ID: <10233@pasteur.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!cory.Berkeley.EDU!wmark
References: <1579@leah.Albany.Edu> <2666@kalliope.rice.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!cory.Berkeley.EDU!wmark
From: wmark@cory.Berkeley.EDU (Mark Williams)
Newsgroups: comp.sys.amiga.tech
Subject: Intuition Impersonation
Message-ID: <10233@pasteur.Berkeley.EDU>
Date: 22 Feb 89 22:08:11 GMT
References: <1579@leah.Albany.Edu> <2666@kalliope.rice.edu>
Sender: news@pasteur.Berkeley.EDU
Reply-To: wmark@cory.Berkeley.EDU.UUCP (Mark Williams)
Organization: University of California, Berkeley
Lines: 35