Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!ai-lab!opal!tolk From: tolk@opal.cs.tu-berlin.de (Robert Tolksdorf) Newsgroups: comp.sys.atari.st.tech Subject: appl-id of running aes-process Message-ID: <3275@troll.cs.tu-berlin.de> Date: 9 May 91 00:04:19 GMT Organization: Technical University of Berlin, Germany Lines: 16 Is there a way to find out the appl_id of the currently running program? It seems as if application 1 is GEM's screenmanager, 2 and above are accessories and 0 is the id of a loaded application. Does this hold in any circumstances? Is it possible to get the appl_id of the application that is owner of the topmost window? Even if the running loaded application has id 1, there could always be an accessory that has opened the topmost window. The background: I'm working on an accessory that sends window-messages to the currently running application. It works fine - even with the desktop - as long as there are no accessory-owned windows. I'm sending the messages via appl_write to application 1 with the window-handle returned by wind_get(0,WF_TOP,...) Ciao Robert Tolksdorf / Koertestr.30 / D-1000 Berlin 61