Hallo,
ich bin momentan an einer Uhr dran die für ein Kumpel ist und soweit funktioniert sie auch.
Mein Problem an der ganzen Geschichte ist aber, das die Schrift von der Uhr unscharf ist und das ich die Schrift selbst nicht Transparent machen kann ![]()
Spoiler anzeigen
#include <WindowsConstants.au3>
#include <WinApi.au3>
$hGui = GUICreate("Clock", 460, 150, Default, (@DesktopHeight / 2) + ((@DesktopHeight / 2 / 2)), $WS_POPUP, BitOR($WS_EX_TRANSPARENT, $WS_EX_LAYERED))
GUISetBkColor(0x010203)
_WinAPI_SetLayeredWindowAttributes($hGui, 0x010203)
$oLabelClock = GUICtrlCreateLabel(@HOUR & ":" & @MIN, 0, 0, 500, 500)
GUICtrlSetFont(-1, 100, 800, 0, "Bookman Old Style", 2)
GUICtrlSetColor(-1, 0x000000)
$oLabelClockSeonds = GUICtrlCreateLabel(@SEC, 400, 85, 70, 40)
GUICtrlSetFont(-1, 30, 800, 0, "Bookman Old Style", 2)
GUICtrlSetColor(-1, 0x000000)
GUISetState(@SW_SHOW)
$nTimerDefault = TimerInit()
$nTimerSeconds = TimerInit()
While 1
Switch GUIGetMsg()
Case $oLabelClock
Case -3
Exit
EndSwitch
If ((TimerDiff($nTimerDefault) >= 10000) And (GUICtrlRead($oLabelClock) <> @HOUR & ":" & @MIN)) Then
GUICtrlSetData($oLabelClock, @HOUR & ":" & @MIN)
$nTimerDefault = TimerInit()
EndIf
If ((TimerDiff($nTimerSeconds) >= 1000) And (GUICtrlRead($oLabelClockSeonds) <> @SEC)) Then
GUICtrlSetData($oLabelClockSeonds, @SEC)
$nTimerSeconds = TimerInit()
EndIf
WEnd
Kann mir da einer helfen bitte?