Hitesh Chavda
Hitesh Chavda

Reputation: 789

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  |  |
|                        |          |  |
|                        |          |  |
|                        +----------+  |
+--------------------------------------+

Upvotes: 5

Views: 8325

Answers (2)

Gaurav Sharma
Gaurav Sharma

Reputation: 2848

You can easily do this using a tool build itself using the autohotkey.

This tool has a drag and drop support for positioning your controls according to your own liking.

Give it a try. You won't regret it. :)

No installation required, just run the file.

SmartGui

Upvotes: 2

SouthStExit
SouthStExit

Reputation: 201

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

Upvotes: 6

Related Questions