Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!labrea!decwrl!sun!cmcmanis From: cmcmanis@sun.uucp (Chuck McManis) Newsgroups: comp.sys.amiga Subject: Re: Feeding a windows IDCMP port Message-ID: <28632@sun.uucp> Date: Mon, 21-Sep-87 15:22:24 EDT Article-I.D.: sun.28632 Posted: Mon Sep 21 15:22:24 1987 Date-Received: Wed, 23-Sep-87 00:43:35 EDT References: <5178@jade.BERKELEY.EDU> Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 37 In article <5178@jade.BERKELEY.EDU> mwm@violet.berkeley.edu (Mike (My watch has windows) Meyer) writes: > >I would like to feed applications IDCMP events from outside the >applications. Most notably, I'd like a CLI command: > > closewindow Name > >That finds the window named Name, and tells it that it's close gadget >has just been hit. > >The obvious hack (chase down the window, and feed an IntuiMessage to >it's UserPort) didn't work. The application apparently never saw the >message, the closewindow program hangs, and the system GURUs when the >application is close for real. > This is due to the very protective nature that Intuition has over its (not your) IDCMP message port. According to jimm the big "I" *knows* that all the messages going to that port are in memory that it owns and has to free, etc. When *you* send a message their you probably confuse the heck out of it. A more disgusting, but more effective hack is to chase down the window, find out where on the screen the close gadget is, then send a MOUSEEVENT into the input stream that is a click on the close gadget. Then Intuition can make up a Close Window message for you and send it to the IDCMP port. If you this is your own program then you can give it your own 'public' port and send messages to that. Of course this is what aREXX does for you. Anyone want to come up with a minimum common command set for a remote control language? Maybe another well know port like RCMP (Remote Control Message Port). We define a common set of 'Messages' that can be sent to these ports and do the same approximate things (OPEN, CLOSE, READ, WRITE, UP, DOWN, etc) -- --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses. But you knew that, didn't you.