Keeping a Dialog Always On Top - Compiled Script

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Phil Pendlebury
Automation Wizard
Posts: 538
Joined: Tue Jan 16, 2007 9:00 am
Contact:

Keeping a Dialog Always On Top - Compiled Script

Post by Phil Pendlebury » Sat Jul 02, 2022 7:59 am

I have the line:

Code: Select all

FormStyle = fsStayOnTop
In my dialog and it works fine when testing the script.

But when the script is compiled it seems that the dialog gets knocked out of focus.

Has anyone any thoughts on this one?
Phil Pendlebury - Linktree

User avatar
JRL
Automation Wizard
Posts: 3497
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Keeping a Dialog Always On Top - Compiled Script

Post by JRL » Wed Jul 06, 2022 6:58 pm


User avatar
Phil Pendlebury
Automation Wizard
Posts: 538
Joined: Tue Jan 16, 2007 9:00 am
Contact:

Re: Keeping a Dialog Always On Top - Compiled Script

Post by Phil Pendlebury » Thu Jul 07, 2022 4:57 am

Thanks JRL.

Funny coincidence is that this is one of the rare cases where I did not use the loop method for my dialog. :lol:

Still having issues with focus though. It's a conundrum for sure.

I am using ObjectSendKeys (as the main dialog is AOT but the modifier keys just do not work. So I am sending them as normal Press / Release. But then they are focussed on the dialog and keep activating the dialog menu.

Anyway thanks again I will keep you updated. :-)
Phil Pendlebury - Linktree

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