0 Replies Latest reply on Aug 25, 2010 1:36 PM by hyper2010

    How to retrieve a list of all windows running/open.

    hyper2010

      Hi All,

       

      A few years ago I created a very small app using Flash and a product called Zinc (it used to be reasonably priced). The app could use a Zinc command that gave me a list of all open windows in the system, and tell me the system's window ID for the current one in focus. I then had my own, basic actionscript timer that would time how long the window was in focus, then reset the timer and start over when another program window was opened, launched or alt-tabbbed/cmmnd-tabbed into focus.

       

      This app did not just track it's own windows but ALL windows from any other application in the system, browser tab windows, multiple windows opened up in photoshop, and anything else you could open on the system. I used it as a simple timer to help track how long I was really spending on projects vs. say, my browser's gmail window (very useful!).

       

      I switched over to AIR for desktop dev (much happier with it) but today I finally tried to recreate this much loved little app, but cannot for the life of me find the equivalent air. javascript version of: "mdm.System.getWindowList();" (can't find equivalent air actionscript function either - but I prefer to build core functionality of my AIR apps directly in javascript and just use Flash for display, passing it simple text and JSON strings).

       

      If it's not a single function, any script ideas on how I would achieve this in my AIR app?

       

      Thanks for your time in considering a solution,

       

      Tessa