Sign in to follow this  
Followers 0
PerryRaptor

Problem with Run(sub-script.exe) and Window Focus

2 posts in this topic

This is difficult to describe...

The main.exe does not have a problem activating a window and it doesn't matter if the window is covered up by another or minimized.

The sub-script.exe that is invoked via the Run() command is not able to activate or set the focus of the window.

I think the sub-script.exe needs so type of Do...While loop that will keep the window activated and in focus.

The sub-script.exe is a count-down timer...Using WinSetState(), WinActivate() , ControlFocus(), ControlCommand(), and ControlClick(). Sub-script.exe takes one argument, 1 or 2 digt number, representing minutes. I use math operators to achieve segmented posting of the remaining time in an edit box on the window that I'm having trouble with. I do not want the main.exe to be paused by the operation of a timer.

Is there a limitation that a window can not be operated by more than one compiled AutoIT script?

Share this post


Link to post
Share on other sites



I guess this constitutes multiple threads and reading elsewhere not supported.

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