Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 08:57

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

Advertisement



Timer variable Autoit

Discussion on Timer variable Autoit within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
AlalaGames's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 394
Received Thanks: 55
Question Timer variable Autoit


wer eine idee wie es lösen könnte?
AlalaGames is offline  
Old 06/15/2019, 10:17   #2

 
elite*gold: 64
Join Date: May 2011
Posts: 1,229
Received Thanks: 854
Ich hätte das jetzt so gemacht, da ich nicht weiß, ob AutoIt etwas mitbringt, womit man Times/Datetimes richtig behandeln kann.

Code:
#include <Date.au3>

$Hour = 20
$Minute = 30
$Second = 0

While 1
	Sleep(30)

	; Get current time (formatted hh:mm:ss)
	$Now = _NowTime()

	; Split by : to get an array [0] = Hour, [1] = Minute, [2] = Second
	$Splitted = StringSplit($Now, ":", 2)

	; Now just check If current hour >= $Hour (20), current Minute => $Minute(30), current Second => $Second(0)
	If $Splitted[0] >= $Hour And $Splitted[1] >= $Minute And $Splitted[2] >= $Second Then
		MsgBox($MB_SYSTEMMODAL, '', "The time is: " & $Now)
	EndIf
WEnd
BladeTiger12 is offline  
Reply


Similar Threads Similar Threads
Variable in Variable
08/09/2016 - AutoIt - 2 Replies
Ich habe ein kleines Problem. Ich bin neu in AutoIt. mein Problem ist folgendes: Ich will in einer Variable einen Path speicher: $NameVar = C:\Users\ Das ist kein Problem. Aber hinter "C:\Users\" soll jetzt aus einer anderen Variable ein Ordner Name genommen werden. Also in etwa: $NameVar = Ordner2 $PathVar = C:\Users\ $NameVar nur so geht das ja nicht ganz ... was kann ich machen? Die Idee dahinter ist das er einen Ordner mit DirCopy() mehrfach erstellt im gleichen Ordner mit...
Job Timer (Taxi Timer, etc)
09/01/2011 - SRO Hacks, Bots, Cheats & Exploits - 2 Replies
A small utility to keep track of jobs that need timing. http://img834.imageshack.us/img834/6076/jt01.png Always read the changelog! To get access to Job Timer, register at "www.error- soft.net" ( without the spaces between the - ) Press thanks if this helps at all.
Cost of accessing a casted variable vs. assigning the casted variable? (C#)
01/05/2011 - CO2 Programming - 5 Replies
I know that in unmanaged C++, casting is at compile-time, so it's better to avoid the assignment and simply access it for all instances. However, in C#, I have no idea since I'm pretty new to it.
Überprüfen ob Variable Eine Variable ist
10/16/2010 - AutoIt - 26 Replies
Hey leute ich wollte fragen ob/wie man überprüfen kann ob eine Variable eine Variable ist z.b. so $k = 1 $i = $k if $i = VARIABLE Then msgbox(0,'$i ist eine variable!!','') endif PS:Wp releast man nochma TuT (z.b. für metin2??)



All times are GMT +1. The time now is 09:00.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.