JumpyNET Posted March 19, 2006 Posted March 19, 2006 How do I find out the xy-coordinates and widths of all visible windows? I'm making a screenmate incase your wondering why I'm asking such a question. PS: I'm using VB2005 and I use Windows XP. Quote
Leaders snarfblam Posted March 19, 2006 Leaders Posted March 19, 2006 All windows on the screen? Use the Windows API. There is a function do get the desktop window. Then there are functions to enumerate child windows of a window. Since the desktop window is the ultimate parent of all windows, a recursive enumeration will grab every window that exists. There are function to get information about windows too. You just need to do some research on Windows API functions concerning windows. A google search and a Windows API utility (such as the API Viewer included with VB6, or the even better, free "ApiViewer 2004"). Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.