AlomWare Toolbox Forum

General Category => Tips and Tricks => Topic started by: GCRedditor136 on December 21, 2025, 12:31:04 PM

Title: Maximize any resizable window with F11
Post by: GCRedditor136 on December 21, 2025, 12:31:04 PM
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)
Title: Re: Maximize any resizable window with F11
Post by: oblivion on December 22, 2025, 09:21:45 PM
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!
Title: Re: Maximize any resizable window with F11
Post by: Paul (Lead Developer) on December 22, 2025, 10:09:12 PM
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)
Title: Re: Maximize any resizable window with F11
Post by: oblivion on December 23, 2025, 12:56:37 AM
Superb. :) Thanks, Paul, tested and working perfectly.

Kudos to GCRedditor136 for coming up with the idea, though, this is SO useful!
Title: Re: Maximize any resizable window with F11
Post by: GCRedditor136 on February 15, 2026, 02:58:36 PM
Glad you like my tip, oblivion.
Title: Re: Maximize any resizable window with F11
Post by: Bazza on February 16, 2026, 07:08:02 AM
Very nice tip.