windows-tiling-window-manager icon indicating copy to clipboard operation
windows-tiling-window-manager copied to clipboard

Issue creating new shortcuts

Open lewis-carson opened this issue 8 years ago • 4 comments

When creating additional shortcuts, the documentation for ''ResizeWinMine(RightLeftWidth,RightLeftHeight, RightLeftLeft, RightLeftTop)'' is a bit lacking. Which bits control each part of the window?

I'm trying to make a window full screen but still having those gaps at each side of the screen if that helps

lewis-carson avatar Jan 07 '18 20:01 lewis-carson

You could do that by adding this code:

windowWidthFull := monitorWidth - (windowBorder * 2)
#x::ResizeWinMine(windowWidthFull ,windowHeightTall , LeftLeftLeft, LeftLeftTop)

It's just a wrapper for WinMovecommand that adds the application specific calculations:

ResizeWinMine(Width,Height,LeftPosition,TopPosition)

math0ne avatar Jan 09 '18 03:01 math0ne

This helped quite a bit. However, when I try to use the shortcut the window disappears off screen. This may be due to me only having one monitor. Will post when fixed for anyone else wanting to try.

My full script (including the edited tiling manager): https://pastebin.com/fa1UDn9z

lewis-carson avatar Jan 10 '18 20:01 lewis-carson

UPDATE: found the solution because intergalactic law dictates that as soon as you ask for help you find the solution. Use this instead:

ResizeWinMine(windowWidthFull, windowHeightTall, RightRightRight, RightRightTop)

lewis-carson avatar Jan 10 '18 21:01 lewis-carson

Yup forgot about that, glad you got it worked out.

math0ne avatar Jan 12 '18 07:01 math0ne