japino Posted November 18, 2007 Share Posted November 18, 2007 I've been searching the list of functions to find a way to switch to an open process, but I cannot find it. With "switch to an open process" I mean bringing that application to the foreground. I'm sure this can be done, but how? Link to comment Share on other sites More sharing options...
flyingboz Posted November 18, 2007 Share Posted November 18, 2007 I've been searching the list of functions to find a way to switch to an open process, but I cannot find it. With "switch to an open process" I mean bringing that application to the foreground. I'm sure this can be done, but how?Look at the prcoess* and the win*activ* functions. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
japino Posted November 18, 2007 Author Share Posted November 18, 2007 (edited) Look at the prcoess* and the win*activ* functions.I have read those functions, but they do not seem to allow me to switch to another process. Please correct me if I'm wrong.Edit: I assumed that there is a ready-made function which allows me to switch to another process - may be there is not? May be the idea is that I should cycle through the open processes and check window titles etc to find out which process I am in. Is that the way to do it? Edited November 18, 2007 by japino Link to comment Share on other sites More sharing options...
flyingboz Posted November 20, 2007 Share Posted November 20, 2007 I have read those functions, but they do not seem to allow me to switch to another process. Please correct me if I'm wrong.Edit: I assumed that there is a ready-made function which allows me to switch to another process - may be there is not? May be the idea is that I should cycle through the open processes and check window titles etc to find out which process I am in. Is that the way to do it?By and large, you have the tools to build what you need. The way you cite is one way to do it; there are several others that also come to mind. Should you decide to build one, consider giving back to the community, -- especially if your solution supports both wintitles and hwnds.Someone else may be inspired to write one, or to donate one they've already written. There are also the pstools available from the microsoft purchased sysinternals. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now