Sign in to follow this  
Followers 0
Tri

switch application

3 posts in this topic

Hi,

I'm new to software development and found autoit quite easy to develop my own functions and program.

I have 1 quick question. I have program 1 and 2 running. I am running program 2 at the moment. I'd like to be able to switch to program 1 as active program and do some functions after a certain time and change back to program 2 to continue my work.

Does this look like it:

WinActive("program 1")

[function]

WinActive("program 2")

Sleep(100000)

Share this post


Link to post
Share on other sites



Is there a reason you can't combine the two? -willing to help if needed.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

How do you mean by combining the 2?

I sorted figure out to use WinActivate but how do I 'unWinActivate' it to the window I was working on?

Edited by Tri

Share this post


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
Sign in to follow this  
Followers 0