Ooker
Ooker

Reputation: 3044

How to create a GUI in the bottom right corner of the screen?

I want to create a transparent timer in the bottom right corner of the screen. The Gui - Syntax & Usage documents only show commands for the leftmost and topmost margin (xm, ym; x0, y0), so I don't know how to set it up properly.

Here is my code:

#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

Upvotes: 0

Views: 292

Answers (1)

Robert Miller
Robert Miller

Reputation: 201

Something like this?

; 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%

Upvotes: 2

Related Questions