[au3]Timer

08/20/2008 16:18 kknb#1
hallo, habe eine frage zu einem timer, undzwar soll es im endeffekt so aussehen das sich ein label auf einer form im sekundentakt von selbst aktualisiert, quasi wie nen timer ;)
leider hab ich kein plan wo ich da ansetzen kann.

hier mal ein codeausschnitt:

$countdown ist die variable die in dem label aktualisiert werden soll.


Code:
.....
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Countdown...", 160, 54, 193, 115)
$Label1 = GUICtrlCreateLabel($countdown, 40, 8, 68, 28)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
	EndSwitch
WEnd

auf countdown komme ich so:

Code:
func auslesen()
$test = WinGetTitle("bla", "")
$countdown = StringLeft ( $test, 8 )
endfunc
08/26/2008 12:43 Ganf#2
Gibt es in Au3 auch Threading? Weil dass machts sehr einfach xD!


MFG
Ganf :mofo:
08/26/2008 12:50 verT!c4L#3
Code-Snippet vom Rappelz Bot:

GUICtrlSetData($F1Label14, "Attacking...")
$attacktimer = TimerInit()
$attacktimerdif = TimerDiff($attacktimer)/60000
GUICtrlSetData($F1Label14, "Attacking- Preattack")

Sowas meinst du nehm ich an ?!
$F1Label14 sollte klar sein, schau am besten auch in die Doku von AutoIT
da sind glaub Beispiele für sowas auch

Gruß verT!c4L

P.S.:
5Sek. Google-> autoit timer

[Only registered and activated users can see links. Click Here To Register...]

sieht nach dem aus, was du suchst/ brauchst...