Path: utzoo!attcan!uunet!mcvax!ukc!tcdcs!tcdmath!pdermody From: pdermody@maths.tcd.ie (Paul Dermody) Newsgroups: comp.sys.amiga Subject: Help me to C. Keywords: CLI, MouseButtons. Message-ID: <624@maths.tcd.ie> Date: 28 Feb 89 13:49:24 GMT Reply-To: pdermody@maths.tcd.ie (Paul Dermody) Organization: Maths Dept., Trinity College, Dublin Lines: 17 Could someone out there in Amiga-land tell me how, if it is possible, I can get a pointer to the current CLI window or WorkBench screen, in C. I am using Lattice C V4.0. I would also like to know exactly what Flags I must set in a window and what message-class I must check for when I want to detect for either of the mouse buttons being pressed. I have tried setting the MOUSEBUTTONS flag and checking for a message of class SELECTUP, SELECTDOWN, MENUUP or MENUDOWN but the computer just sits there grinning. I have overcome the problem for now, by checking for window activation. Any help appreciated. Thanks in advance. -- Paul Dermody: Mathsc. | "An Irishman who doesn't drink. There's a turn up Trinity College, Dublin | for the books!": Light a penny candle, Maeve Binchy. Ireland. | "An Irishman who doesn't drink. Isn't that a Theorem: 26 + 6 = 1 | Contradiction in terms?": Staten Island bouncer.