Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

Recommended Posts

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. :wacko:

Can anyone please help me?

Thanks in advance,

Gray

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...