its working well at my computer, but at diffrent computers, the font is not working.
I found 3 solutions with DllCall. the font was in the working dir. I couldnt make it work.
Code: Select all
F1::
; DllCall("Gdi32.dll\AddFontResourceEx", "Str","digital clock font.ttf", "UInt", 0x10, "UInt", 0)
; DllCall( "AddFontResource", Str,"digital clock font.ttf" )
; DllCall("GDI32.DLL\AddFontResource", str, "digital clock font.ttf")
; tried 3 diffrent dllcall but cant make it work.
StartTime := A_TickCount
EndTime := ctd
EndTimeNow := ctd
SetTimer, SCountdownNow, 100
Gui, Destroy
Gui, -Caption +ToolWindow +AlwaysOnTop
Gui, Font, s30 , digital clock font
Gui, Add, Text,x75 y27 w300 BackGroundTrans c01083d , 88:88:88
Gui, Add, Text,x75 y27 w300 BackGroundTrans cAqua vSCountdown ,
Gui, Color, c000524
Gui, Show, x800 y300 w305 h100
return
SCountdownNow:
; doing counting things.....
return