fsStayOnTop not working with Setfocus

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Junior Coder
Posts: 32
Joined: Fri Jul 05, 2019 11:21 am

fsStayOnTop not working with Setfocus

Post by Scones » Thu Oct 10, 2019 12:40 pm


I'm running a script and i really want a dialog to stay on top at all times. Using fsStayOnTop does work when a user manually focuses other windows, but when i use setfocus>another_window in my script, it kind of overwrites the fsStayOnTop, and the another_window gets on top of my dialog.

The only solution i can think of is just inserting setfocus>dialog whenever it's ok for the other window to not be focused anymore, but that is really not ideal because the dialog will just disappear and reappear through out the script.

Thanks in advance!

User avatar
Automation Wizard
Posts: 463
Joined: Fri Aug 10, 2012 2:38 pm
Location: Hudiksvall, Sweden

Re: fsStayOnTop not working with Setfocus

Post by Grovkillen » Thu Oct 10, 2019 12:43 pm

Have the window not modal and loop the dialog command.

Running: 15.0.9

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts