Get a list of non-livecode windows
Posted: Thu Jun 06, 2013 2:31 am
Hey Everyone,
Is it possible to get a list of all windows that are open on a users computer? Reason for this is I want to auto update my application but can't overwrite the application while it is still open. So I create a second executable called update_installer. So when the user selects they want to update the application I launch update_installer and close the main application. First thing I want to do in the update_installer app is check if the main application is still open and wait till it has been closed. Problem is that I can't seem to figure out if the window is open because I don't know how to access a list of all open windows.
Other thing is I need the solution to work on PC and MAC.
Any help would be great.
Is it possible to get a list of all windows that are open on a users computer? Reason for this is I want to auto update my application but can't overwrite the application while it is still open. So I create a second executable called update_installer. So when the user selects they want to update the application I launch update_installer and close the main application. First thing I want to do in the update_installer app is check if the main application is still open and wait till it has been closed. Problem is that I can't seem to figure out if the window is open because I don't know how to access a list of all open windows.
Other thing is I need the solution to work on PC and MAC.
Any help would be great.