Jump to content
Sign in to follow this  
lowrider2025

set program window on top

Recommended Posts

lowrider2025

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

Share this post


Link to post
Share on other sites
JLogan3o13

Have you looked at WinSetOnTop in the help file?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
lowrider2025
5 minutes ago, JLogan3o13 said:

Have you looked at WinSetOnTop in the help file?

Sorry edited my 1st post and yes also tried WinSetOnTop...

Edited by lowrider2025

Share this post


Link to post
Share on other sites
lowrider2025

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.