Jump to content

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


Recommended Posts

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?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...