Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!cbmvax!higgin From: higgin@cbmvax.UUCP Newsgroups: comp.sys.amiga Subject: Re: I was just wondering... Message-ID: <2827@cbmvax.UUCP> Date: Thu, 19-Nov-87 12:23:05 EST Article-I.D.: cbmvax.2827 Posted: Thu Nov 19 12:23:05 1987 Date-Received: Sat, 21-Nov-87 16:30:27 EST References: <1388@weber.munsell.UUCP> Organization: Commodore Technology, West Chester, PA Lines: 47 in article <1388@weber.munsell.UUCP>, klm@munsell.UUCP (Kevin [Being Weird Isn't Enough] McBride) says: > Keywords: technical inquiry > 4) How do you specify a non- Hot Key in your menu? A couple > of other programs I've seen use these. They don't have an 'image' of > the appropriate key, just plain text. Is this done by kludging the > text in your menu structure and then using RAWKEYS on the window to > intercept everything? Yes, or VANILLAKEY. > While I'm at it, I've got another menu oriented question. I have a piece of > commercial software that I want to 'enhance' by way of adding an unrelated > feature. If I had the source code for this beast, I'd just rewrite it. I > considered writing to the author and asking him to do it, but I see no hope > in that because what I want to do is really off the wall. A bona-fide hack. Gulp. > Using the program 'menutext' that came around here a while back (6 months?) > I intend to change the text of a menu item for a feature that I never use in > this program. I then want to write a program that (kind of like MonIDCMP) > that will intercept all messages to the program's IDCMP port and, if the > message is a menu select on 'my' menu item, will perform 'my' function. All > other messages will be passed on, unscathed, to the victim program. Well, > almost. When I intercept a CLOSEWINDOW message, I'm going to set everything > back to normal and de-allocate the UserData stuff, before I pass the message > along and let the program go it's merry way. > > Does this sound like a reasonable thing to do? Is it possible to do this? > Remember this is just a hack, I'm not necessarily going to subject the > rest of the world to my depravity. I mean, if I saw *real* commercial > possibilities for my, ahem, 'feature', I'd damn sure call up the guy who > wrote this program and try to talk him into it. Right now, I'm just doing > it for kicks. Sort of. Sounds possible, and if implemented cleanly, shouldn't affect the program in question. I hope your program will know how to disappear if he quits the program through a menu action, i.e., you'll be checking for that one. > Thanks in advance for any info that will help me advance the cause of > bizarre hacks. > Kevin McBride, the guy in the brace // | It's the end of the world > Eikonix - A Kodak Co. // | as we know it, > Billerica, MA \\ // Amiga | > {encore,adelie}!munsell!klm \X/ Rules! | And I feel fine... Paul.