Hello, Suppose you have two windows (two substacks open) With the stacksInUse function I can know which windows are open. Now, how can I know which of those windows is the frontmost window and how can I write a script to bring a window which is in the background to the front ? Thank you. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be