App window opens in background when modifier pressed

Simple button test code:

@keydown:none notepad {f!} @keydown:any notepad

When I click this button in combination with alt or shift or ctrl the application window opens behind the current lister. Without a modifier the application window opens in the foreground. Opus 12.4.4. Windows 7.

Regards, AB

That does not happen here.

What happens if you have a button which just runs notepad without the @keydown and other lines, then hold Ctrl and click that?

What about Ctrl + double-click on notepad.exe from Explorer?

Could there be something on your system that makes things not take focus if they're launched when a modifier is held down?

[quote="Leo, post:2, topic:25686"]
What happens if you have a button which just runs notepad without the @keydown and other lines, then hold Ctrl and click that?[/quote]

Mostly opens behind the current lister, sometimes in front.

What about Ctrl + double-click on notepad.exe from Explorer?

Shift + double click consistently opens behind the Explorer window.
Ctrl + double click opens behind the Explorer window on first execution then does nothing on subsequent executions.

The "sometimes in front" behaviour is also true of the @keydown button.

I also tried with a vanilla config after a reboot and the same thing happens. It's not a huge problem, just an annoyance.

Trying here in Explorer, double-clicking Notepad.exe directly, I see the same thing.

Ctrl + double-click does work but has to be done a few times for anything to happen. I think that part may be a quirk of Explorer.

Both sometimes open Notepad behind the Explorer window, but neither always does.

Whatever it is seems to affect both Opus and Explorer, and seems to be intermittent, probably down to the timing of something (which might explain why we both see it more in slightly different cases).

The same thing happens with TextPad, double-clicked in Explorer, so I don't think it's a quirk of Notepad. Seems an oddity of Windows itself when launching programs with qualifiers held down.

Yes. I just tried with Explorer on a W10 system and the same thing happens. I can't believe that I never noticed this behaviour before.... :neutral_face: