Mike
Mike

Reputation: 2391

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)

Upvotes: 3

Views: 1236

Answers (2)

Elliot DeNolf
Elliot DeNolf

Reputation: 2999

The only way of resizing individual controls, would be to use the ControlMove command.

However, in order to use this command, the control must be able to be detected. This would be either as ClassNN, control name, or HWND (window handle).

Upvotes: 0

HAL9256
HAL9256

Reputation: 13453

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.

Upvotes: 3

Related Questions