Register for your free account! | Forgot your password?

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

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

Advertisement



Start program in specific time ?

Discussion on Start program in specific time ? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
Start program in specific time ?

Hi

Can u tell me how i can start program on my computer in computer time ?
mlukac89 is offline  
Old 12/05/2014, 23:26   #2
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
Do you want to start an application at a given time with an AutoIt script?
  • Macros (@HOUR, @MIN, @SEC)
  • Run()

You can add the (compiled) script to your startup folder if Windows should run the application automatically. A better solution would be the Windows Task Scheduler.
KDeluxe is offline  
Old 12/06/2014, 01:10   #3
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
Ok ty i will try both

Edit:
This works nice

Code:
While 1
	If @HOUR = 02 And @MIN = 20 And @SEC = 00 Then
		ConsoleWrite("Current time : " & @HOUR & " : " & @MIN & " : " &  @SEC & @CRLF)
		Sleep(1000)
	EndIf
WEnd
mlukac89 is offline  
Old 12/06/2014, 14:50   #4
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
maybe with @SEC it fails because of that sleep put it away or make something like >= 00 And <= 02
YatoDev is offline  
Old 12/06/2014, 15:19   #5
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Warum sollte das failen? Er hat doch keinen Sleep für die Schleife selber.


You better add a Sleep(10) to the While-Condition because it'll decrease your cpu usage.
alpines is offline  
Old 12/06/2014, 21:02   #6
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
Quote:
Originally Posted by alpines View Post
Warum sollte das failen? Er hat doch keinen Sleep für die Schleife selber.


You better add a Sleep(10) to the While-Condition because it'll decrease your cpu usage.
ja sry habe bei sleep(1000) irgendwie gedacht das wär außerhalb der if dann wärs natürlich fatal
YatoDev is offline  
Old 12/06/2014, 23:50   #7
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
Quote:
Originally Posted by alpines View Post
Warum sollte das failen? Er hat doch keinen Sleep für die Schleife selber.


You better add a Sleep(10) to the While-Condition because it'll decrease your cpu usage.
How it will decrease cpu usage i dont understand ?
mlukac89 is offline  
Old 12/07/2014, 00:08   #8
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
because it dont do anything for 10 ms. 10ms are much more cpu cycles
YatoDev is offline  
Old 12/07/2014, 00:14   #9
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
Ok ty
mlukac89 is offline  
Old 12/07/2014, 02:00   #10
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Quote:
Originally Posted by »FlutterShy™ View Post
ja sry habe bei sleep(1000) irgendwie gedacht das wär außerhalb der if dann wärs natürlich fatal
Nein eigentlich nicht. Es wird nach @SEC gefragt und wenn man einen idealen Sleep von 1000 hätte, dann ist das egal denn es ist spielt keine Rolle ob man @SEC = 02 checkt wenn die Sekunden gerade auf 02 umgesprungen sind oder es erst bei 02.980 checkt.
alpines is offline  
Old 12/07/2014, 03:04   #11
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
Quote:
Originally Posted by alpines View Post
Nein eigentlich nicht. Es wird nach @SEC gefragt und wenn man einen idealen Sleep von 1000 hätte, dann ist das egal denn es ist spielt keine Rolle ob man @SEC = 02 checkt wenn die Sekunden gerade auf 02 umgesprungen sind oder es erst bei 02.980 checkt.
ja das weis ich doch war ja nur aus versehen hab mich da verguckt mit dem sleep
YatoDev is offline  
Reply


Similar Threads Similar Threads
[Question] Creating NPC for specific time
06/15/2010 - EO PServer Hosting - 1 Replies
hi guys.. i got a question here .. how to i create a npc that show up just for certain time like the pkt admin or the teleporter for family war map? they just show up for a while and disappear.. im trying to create one .. ive looking all over the cq_action but i still carnt find the right solution for it.. i know its checks server time and create npc after the time match..i can create the npc manually by using /processaction command but im trying to make it auto.. anyone know how to do it ? is...
Looking for a specific program
01/15/2009 - Conquer Online 2 - 3 Replies
Hi, i've been searching for a program or a bot that will d/c my characters when they have low durability. I have a botting program, but i can't leave it on when i sleep because of the dura problem. If anyone can show me a program or bot that can help me other than CID proxy, that would be awesome. Thanks



All times are GMT +1. The time now is 08:50.


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.