1

Тема: AHK: WinMove

Здравствуйте! Такой вопрос, как можно заставить изменять размер окна через команду WinMove относительно клиента, а не окна. Т.е. не учитывая рамку. В coordmode подобного параметра для окна нет.

telegram: bass_devware

2

Re: AHK: WinMove

В CoordMode есть.

CoordMode, TargetType , RelativeTo

...

RelativeTo

    The area to which TargetType is to be related. Specify one of the following words (if omitted, it defaults to Screen):

    Screen: Coordinates are relative to the desktop (entire screen).

    Relative: Coordinates are relative to the active window.

    Window [v1.1.05+]: Synonymous with Relative and recommended for clarity.

    Client [v1.1.05+]: Coordinates are relative to the active window's client area, which excludes the window's title bar, menu (if it has a standard one) and borders. Client coordinates are less dependent on OS version and theme.

Только не понятно, что конкретно Вы хотите сделать.

3

Re: AHK: WinMove

ypppu

TargetType
The type of target to affect. Specify one of the following words:

ToolTip: Affects ToolTip.

Pixel: Affects PixelGetColor, PixelSearch, and ImageSearch.

Mouse: Affects MouseGetPos, Click, and MouseMove/Click/Drag.

Caret: Affects the built-in variables A_CaretX and A_CaretY.

Menu: Affects the Menu Show command when coordinates are specified for it.

WinMove не попадает не под один из пунктов.

telegram: bass_devware

4

Re: AHK: WinMove

Найдите размер клиентской части, потом размер всего окна, вычислите разницу, и меняйте размер с помощью WinMove, учитывая разницу.

Разработка AHK-скриптов:
e-mail dfiveg@mail.ru
Telegram jollycoder

5

Re: AHK: WinMove

teadrinker
Думал над этим вариантом, но здесь нюанс в том, что выставив размер с учётом рамки, то размер не поменяется. Бред, но это так.
Рамка не обычная, она изменена программой и имеет другой вид, в отличии от стандартной.

telegram: bass_devware

6

Re: AHK: WinMove

basstech, столы Старзов? Посмотрите внимательно какие расстояния от рамки. Причём со всех сторон окна. А потом ещё раз попробуйте как написано выше.

7

Re: AHK: WinMove

basstech пишет:

выставив размер с учётом рамки, то размер не поменяется

А это вы случайно пишите не про то что WinMove в принципе с этим окном не работает?

По вопросам возмездной помощи пишите на E-Mail: serzh82saratov@mail.ru Telegram: https://t.me/sergiol982
Win10x64 AhkSpy, Hotkey, ClockGui