【问题标题】:How to create a GUI in the bottom right corner of the screen?如何在屏幕右下角创建 GUI?
【发布时间】:2019-09-04 00:29:13
【问题描述】:

我想在屏幕的右下角创建一个透明计时器。 Gui - Syntax & Usage 文档只显示最左边和最上边距的命令(xmymx0y0),所以我不知道如何正确设置它。

这是我的代码:

#Singleinstance, Force
Gui, Color, white
Gui, Font, S9, Tahoma
Gui, Add, Text, BackgroundTrans vT, 00:00:00
Gui +LastFound +AlwaysOnTop +ToolWindow -Caption
WinSet, TransColor, white
Gui, Show
SetTimer, Update, 1000
Update:
 GuiControl,, T, % A_Hour ":" A_Min
Return

【问题讨论】:

    标签: user-interface screen autohotkey


    【解决方案1】:

    这样的?

    ; 50 is number of pixels from the right of the screen
    xval:=A_ScreenWidth-50 
    ; 25 is number of pixels from bottom of the screen
    yval:=A_ScreenHeight-25 
    Gui, Show, x%xval% y%yval%
    

    【讨论】:

    • 这是否也取决于屏幕尺寸?有没有办法将它定位在任务栏时钟的正上方?
    • 是的。您可以尝试尝试我选择的 50 和 25 以外的偏移量。或者,您可以使用 AHK 附带的 Window Spy 程序来确定您想要放置 GUI 的确切屏幕坐标。
    猜你喜欢
    • 1970-01-01
    • 2012-04-02
    • 2013-02-17
    • 2011-01-28
    • 2019-01-05
    • 1970-01-01
    • 2017-05-19
    • 2013-04-22
    • 1970-01-01
    相关资源
    最近更新 更多