Updating Variables With Control Things
Posted: 05 Jan 2022, 15:54
Code: Select all
`::
if toggle := !toggle
{
SetTimer, Loop1, 12
goto timey
}
else
SetTimer, Loop1, Off
Gui, timer:Destroy
Gui, Destroy
return
Loop1:
Gui,Color,Red,000000
Gui, -Caption
TempVar := A_ScreenHeight +100
Gui,Show, h%TempVar% w%A_ScreenWidth%
sleep 1
Gui,Color,White,000000
sleep 1
Gui,Color,Orange,000000
sleep 1
Gui,Color,White,000000
sleep 1
Gui,Color,Yellow,000000
sleep 1
Gui,Color,White,000000
sleep 1
Gui,Color,Green,000000
sleep 1
Gui,Color,White,000000
sleep 1
Gui,Color,Blue,000000
sleep 1
Gui,Color,White,000000
sleep 1
Gui,Color,Purple,000000
sleep 1
Gui,Color,White,000000
return
timey:
TextColor = FF0000
Gui, timer:new
Gui, timer:Color, EEAA99
Gui, timer:Font, S72, Arial Black
Gui, timer:Add, Text, BackgroundTrans vT1, 00:00:00
Gui, timer:Add, Text, xp-3 yp-3 c%TextColor% BackgroundTrans vT2, 00:00:00
Gui timer:+LastFound +AlwaysOnTop +ToolWindow
WinSet, TransColor, EEAA99
Gui, timer:-Border -Caption +AlwaysOnTop
Gui, timer:Show
SetTimer, TextStrobe, 3
SetTimer, Update, 1000
return
TextStrobe:
TextColor = FF0000
sleep 1
TextColor = 0000FF
sleep 1
TextColor = 00FF00
sleep 1
return
Update:
GuiControl, timer:, T1, % A_Hour ":" A_Min ":" A_Sec
GuiControl, timer:, T2, % A_Hour ":" A_Min ":" A_Sec
Return
h::
Exitapp