Hit*_*vda 4 user-interface autohotkey
在Autohotkey中,
我想把我的Gui窗口放在屏幕的右下方,但是怎么样?
为了说明,
+--------------------------------------+
| Desktop (screen) |
| |
| |
| +----------+ |
| | Gui | |
| | window | |
| | | |
| | | |
| +----------+ |
+--------------------------------------+
Run Code Online (Sandbox Code Playgroud)
小智 5
您需要使用GUI的预定义宽度和高度与内部变量A_ScreenWidth和A_ScreenHeight并强制Gui的 Param2 ,Show作为表达式使其工作.例如,如果GUI的宽度为900且高度为550:
Gui, Show, % "x" A_ScreenWidth - 900 " y" A_ScreenHeight - 550 " w" 900 " h" 550, The GUI
Run Code Online (Sandbox Code Playgroud)