Path: utzoo!bnr-vpa!bnr-fos!leibniz.uucp!momtahan From: momtahan@leibniz.uucp (Parham Momtahan) Newsgroups: comp.sys.mac.programmer Subject: How can a desk accessory find application windows? Message-ID: <1405@bnr-fos.UUCP> Date: 8 Aug 89 21:04:06 GMT Sender: news@bnr-fos.UUCP Reply-To: momtahan@leibniz.uucp (Parham Momtahan) Organization: Bell-Northern Research, Ottawa, Canada Lines: 15 I am developing a DA that has to know the title of the application window that is active when the DA is launched, and I am having trouble obtaining the window pointer. Any suggestions? BTW, I have attempted calling the "FrontWindow" function prior to creating the DA's own window in order to obtain the window pointer. However, it turns out that the "WindowList" global is nilled out when a DA is launched, presumably by the Desk Manager.Consequently "FrontWindow" returns nill. I am rather stumped! Any help would be gratefully appreciated. Parham Momtahan (Bitnet: momtahan@bnr.ca | Phone: 613-765-4673 ) Computing Research Laboratory, Bell-Northern Research Ltd., PO Box 3511, Station C, Ottawa, Ont K1Y4H7, Canada.