Page 1 of 1

How to use percentage in the axis of GUI positioning

Posted: 23 Oct 2021, 02:02
by whats_up
I have a simple "show" action of GUI, and I can make it in the center of X axis ...

Code: Select all

Gui, One: Show, Center y800 NoActivate, %text%
... but how to make it for 70 (or 80) % in the Y axis?

Thanks.

Re: How to use percentage in the axis of GUI positioning  Topic is solved

Posted: 23 Oct 2021, 05:34
by mikeyww

Code: Select all

Gui, One:Show, % "NoActivate y" 0.7 * A_ScreenHeight, %text%

Re: How to use percentage in the axis of GUI positioning

Posted: 23 Oct 2021, 10:06
by whats_up
mikeyww wrote:
23 Oct 2021, 05:34

Code: Select all

Gui, One:Show, % "NoActivate y" 0.7 * A_ScreenHeight, %text%
Awesome, thanks!