Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cca!mirror!adelie!munsell!klm From: klm@munsell.UUCP (Kevin [Being Weird Isn't Enough] McBride) Newsgroups: comp.sys.amiga Subject: I was just wondering... Message-ID: <1388@weber.munsell.UUCP> Date: Wed, 18-Nov-87 19:23:40 EST Article-I.D.: weber.1388 Posted: Wed Nov 18 19:23:40 1987 Date-Received: Sat, 21-Nov-87 12:24:27 EST Organization: Eikonix Corp., Bedford, MA Lines: 52 Keywords: technical inquiry I was floundering around in the RKMs and Intuition the other day and came up with a question. I know how to specify shortcut keys (i.e. Right Amiga - ) in your menu structures, and when you pull down that menu it shows you a pretty little image of the amiga key to the right of your menu text. 1) Where does that image come from? I don't see any pointers to an image structure floating around anywhere. 2) Is it built in to Intuition? 3) If the answer to 2) is YES, then how did Charlie Heath manage to change it in TxED? (At least in my old version) 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? 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. 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. 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...