Modify Font Size in Script
Posted: Sep 4th, ’21, 22:58
could u please advise how to decrease the font size "this script is from FASTKEYS library", and also advise how to change font type.
I tried to modify the values, but i end up having half the numbers showing "numbers not showing properly".
if WinExist("MyCountdown") {
Gui, 19:Destroy
SetTimer, ShowTimerCD, Off
}
else {
InputBox, secsLeft , Countdown, Countdown Seconds:,,160,123,,,,15
If ErrorLevel
Return
Gui 19:+LastFound +AlwaysOnTop -Caption +ToolWindow
Gui 19:Color, EEAA99
Gui 19:Font, s228
Gui 19:Margin, 0, 0
Gui 19:Add, Text, w335 h290 yp-50 Vdisp Cred Right
WinSet TransColor, EEAA99
Gui 19:Show, NoActivate, MyCountdown
SetTimer, ShowTimerCD, 1000
Gosub ShowTimerCD
Return
}
ShowTimerCD:
secsLeft--
IfEqual, secsLeft, 0
{
Loop 4
{
GuiControl, 19:Text, disp, 0
Sleep 400
GuiControl, 19:Text, disp,
Sleep 400
}
SetTimer ShowTimerCD, Off
;Sleep 3000
Gui, 19:Destroy
}
Else
GuiControl, 19:Text, disp, %secsLeft%
Return
I tried to modify the values, but i end up having half the numbers showing "numbers not showing properly".
if WinExist("MyCountdown") {
Gui, 19:Destroy
SetTimer, ShowTimerCD, Off
}
else {
InputBox, secsLeft , Countdown, Countdown Seconds:,,160,123,,,,15
If ErrorLevel
Return
Gui 19:+LastFound +AlwaysOnTop -Caption +ToolWindow
Gui 19:Color, EEAA99
Gui 19:Font, s228
Gui 19:Margin, 0, 0
Gui 19:Add, Text, w335 h290 yp-50 Vdisp Cred Right
WinSet TransColor, EEAA99
Gui 19:Show, NoActivate, MyCountdown
SetTimer, ShowTimerCD, 1000
Gosub ShowTimerCD
Return
}
ShowTimerCD:
secsLeft--
IfEqual, secsLeft, 0
{
Loop 4
{
GuiControl, 19:Text, disp, 0
Sleep 400
GuiControl, 19:Text, disp,
Sleep 400
}
SetTimer ShowTimerCD, Off
;Sleep 3000
Gui, 19:Destroy
}
Else
GuiControl, 19:Text, disp, %secsLeft%
Return