I am running a sequence of applications from a series of scripts and I want to make sure that the open program will always be in focus.
We must ensure this because it is an experimental setup, and we want to minimize such troubles as changing the focus to a full-screen window.
This problem has already occurred infrequently when the previous program ends, and for a moment the desktop becomes visible, and the user clicks on an icon on the desktop, and immediately after that the next program is processed in sequence, the new window is not in focus.
Now the problem became much more frequent when I hid the command window from the view.
Any way to get the focus for the next program in the sequence, whether it is a command command, some settings for the OS (we are in Win XP) or an auxiliary application can be useful.
Milla well
source share