Register for your free account! | Forgot your password?

You last visited: Today at 23:38

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[au3]Timer

Discussion on [au3]Timer within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
[au3]Timer

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
kknb is offline  
Old 08/26/2008, 12:43   #2
 
elite*gold: 0
Join Date: Mar 2007
Posts: 567
Received Thanks: 48
Gibt es in Au3 auch Threading? Weil dass machts sehr einfach xD!


MFG
Ganf
Ganf is offline  
Old 08/26/2008, 12:50   #3
 
verT!c4L's Avatar
 
elite*gold: 0
Join Date: Aug 2005
Posts: 1,245
Received Thanks: 60
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



sieht nach dem aus, was du suchst/ brauchst...
verT!c4L is offline  
Reply


Similar Threads Similar Threads
Help with gw timer
02/10/2010 - CO2 Private Server - 0 Replies
Hey, i am using a timer on my gw and im trying to figure out how to make it that the timer could restart before it ends. if you can help me then reply here or add me on msn [email protected] thx in advance flamers will be reported
Timer
07/08/2009 - CO2 Private Server - 12 Replies
Would thi sbe how i go about making a timer for my server? In General.cs public static System.Timers.Timer Thetimer; //Regular Save Timer Thetimer = new System.Timers.Timer(); Thetimer.Interval = 5000;//5 seconds Thetimer.Elapsed += new ElapsedEventHandler(Thetimer_Elapsed); Thetimer.Start();
[HELP] Timer
05/26/2009 - CO2 Private Server - 3 Replies
I need help making a timer in lotf
Timer
06/04/2008 - Metin2 - 13 Replies
Hey leute kann mir jemand bitte eine datei programmiern, die nachdem start den pc in 90 mins herunterfährt. :) ich bräuchte ihn für den angelbot;), damit ich ihn starten kann, wenn ich in der schule bin, ohne das der pc umsonst so lang an bleibt.:D
Timer
01/14/2005 - General Gaming Discussion - 8 Replies
Hi Leutz Dieser Timer is ne gute hilfe fuer alle Klassen die beim OP fight mit machen. Der Timer zeigt euch welcher Buff gerade ausgeht (10min Resistbuff) und wann Shelter/def ausläuft... für das schöne syncgelame ^^... gf and hf ;) http://home.pages.at/smoker/timer/timer.zip mfg das BluB



All times are GMT +2. The time now is 23:38.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.