Jump to content

set program window on top


Recommended Posts

Does the windows startup mechanism have a fixed timeout for programs or can it not see other processes while it has been launched in the startup folder ? I want a certain program to have it's window on top. But this doesn't work.

What I do:

Run(program,programdir) ;this needs program needs it window on top "Login"(child window of main program)

ProcessWait(other program.exe,5)

WinActivate("Login") (also tried : WinSetOnTop("Login","",1)

So both programs open but other program stays on top.

Should be simple to do...but in my case not so :rolleyes:

 

Edited by lowrider2025
Link to comment
Share on other sites

Does someone know what happens if programs from run in hklm run after program in hkcu (program that needs Login window on top). Would this interfere with the on top setting ? Or does is the WinSetOnTop absolute ?

Am I exact in thinking:

ProcessWait(process.exe)

WinSetOnTop: 10ms

process.exe takes 500ms to display it's splash screen so this happens after SetOnTop from 1st program. Will this have process.exe's window in front of the window of the 1st program ?

Or let 1st program sleep for 10 seconds and then WinActivate("Login") and WinSetOnTop("Login","",1) ?

Edited by lowrider2025
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...