Gray Posted November 12, 2007 Share Posted November 12, 2007 Hi,I know that you can use cmdow to switch to specific windows, but how can I use it to switch to the window that was running just before the new window opened?If that's a bit confusing, I will try and be a bit more clear.Here's the scenario. A PC is running three apps at the same time. A user is using one of them, when a scheduled tasks runs a batch file to check if something is running. If it's not running it starts it, if it is, it leaves it alone. Problem is, the batch file steals the focus from what the user was doing. How can I tell cmdow to return the focus to the app that the user was using?I imagine you have to get cmdow to save the ACTive window, then run the batch file, then REStore the old active window.Problem is I have no idea how to do it. Can anyone please help me?Thanks in advance,Gray 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