Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autohotkey to resize window with child windows

I use FrontPage 2003 for linking html files, through the command 'Insert' > Hyperlink.

And the window opens as follows: enter image description here

I made a script with Autohotkey to resize the window, so I see more of the files in the 'current folder' (I think the class is SysTreeView32), but it doesn't apply to the child windows (I guess it is called mdichild), it shows as follows: enter image description here

What I need is to make the script resizes the window and all the child windows.

The current scrip is:

#NoEnv

ResizeWin(Width = 0,Height = 0)
{
  WinGetPos,X,Y,W,H,A
  If %Width% = 0
    Width := W

  If %Height% = 0
    Height := H

  WinMove,A,,%X%,%Y%,%Width%,%Height%
}

#!u::ResizeWin(800,800)
like image 734
Mike Avatar asked Jan 23 '26 14:01

Mike


1 Answers

From the screenshot, it looks like the resize is working.

Unfortunately, there are some windows that just don't resize properly. I assume that if you use your mouse, you can't resize it manually either. This is especially prevalent for older programs.

like image 127
HAL9256 Avatar answered Jan 25 '26 10:01

HAL9256



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!