News:

Welcome to our NEW forum! We invite you to sign up today
so it can grow to be a valuable resource to all Toolbox users!

Main Menu

Maximize any resizable window with F11

Started by GCRedditor136, December 21, 2025, 12:31:04 PM

Previous topic - Next topic

GCRedditor136

Here's my entry for the contest. I don't normally use F11 for anything but Edge, which makes it fullscreen. So I thought why not make F11 maximize (fullscreen) any other window that supports being maximized? Press F11 on any window that can be resized and it toggles from normal to maximized, including folders.

Edit: This only works for one monitor (which is what I have). For multiple monitors, see Paul's tip further below.

(Start)
TIP: Copy from Start to End to paste into an action.
0001 Action: Allow failure messages "0"
0002 Window: Assign active ""
0003 Action: Do this block if "winx$<>-8"
0004   Window: Maximize to fill desktop ""
0005   Action: Finish ""
0006 Action: End of block ""
0007 Window: Restore size from max/min ""
(End)

oblivion

This is a great idea -- although it's not really working for me.

I think it might be the fact that I'm on a multi-monitor setup.

As far as I can work out, the line

Action: Do this block if "winx$<>-8"
has to be true for a non-maximised window and if it's not working on my system, it can't be. Yet the restore that's triggered if the window is already maximised (you didn't mention that that bit's there!) works fine.

So I like the idea but -- Paul? If you're watching? -- is there a better way to test whether a window's maximised or not? I'll definitely use this if I can make it work, as it's a tiny bit of brilliance I wish was built into Windows already!

Paul (Lead Developer)

#2
The new version of Toolbox has just been updated to support "winmax$" and "winmin$" variables, which will be 1 or 0 for the assigned window accordingly. This means the action above can now be done like this for multiple monitors:

(Start)
TIP: Copy from Start to End to paste into an action.
0001 Action: Allow failure messages "0"
0002 Window: Assign active ""
0003 Action: Do this block if "winmax$=0"
0004   Window: Maximize to fill desktop ""
0005   Action: Finish ""
0006 Action: End of block ""
0007 Window: Restore size from max/min ""
(End)

oblivion

Superb. :) Thanks, Paul, tested and working perfectly.

Kudos to GCRedditor136 for coming up with the idea, though, this is SO useful!

GCRedditor136