Jump to content

Recommended Posts

Posted

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)

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

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
×
×
  • Create New...