Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gui window Positioning in Autohotkey

In Autohotkey,

I want to position my Gui window to right bottom of the screen but how?

For illustrate,

+--------------------------------------+
|   Desktop (screen)                   |
|                                      |
|                                      |
|                        +----------+  |
|                        |   Gui    |  |
|                        |  window  |  |
|                        |          |  |
|                        |          |  |
|                        +----------+  |
+--------------------------------------+
like image 307
Hitesh Chavda Avatar asked Feb 27 '23 08:02

Hitesh Chavda


1 Answers

You'll need to use the pre-defined width and height of the GUI with the internal variables A_ScreenWidth and A_ScreenHeight and force Param2 of Gui, Show as an expression to make it work. For example if the width of the GUI is 900 and the height is 550:

Gui, Show, % "x" A_ScreenWidth - 900 " y" A_ScreenHeight - 550 " w" 900 " h" 550, The GUI
like image 54
SouthStExit Avatar answered Mar 05 '23 22:03

SouthStExit