|
You last visited: Today at 08:48
Advertisement
Start program in specific time ?
Discussion on Start program in specific time ? within the AutoIt forum part of the Coders Den category.
12/05/2014, 22:47
|
#1
|
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 ?
|
|
|
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.
|
|
|
12/06/2014, 01:10
|
#3
|
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
|
|
|
12/06/2014, 14:50
|
#4
|
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
|
|
|
12/06/2014, 15:19
|
#5
|
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.
|
|
|
12/06/2014, 21:02
|
#6
|
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
|
Quote:
Originally Posted by alpines
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
|
|
|
12/06/2014, 23:50
|
#7
|
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
|
Quote:
Originally Posted by alpines
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 ?
|
|
|
12/07/2014, 00:08
|
#8
|
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
|
|
|
12/07/2014, 00:14
|
#9
|
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
|
Ok ty
|
|
|
12/07/2014, 02:00
|
#10
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
Quote:
Originally Posted by »FlutterShy™
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.
|
|
|
12/07/2014, 03:04
|
#11
|
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
|
Quote:
Originally Posted by alpines
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
|
|
|
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.
|
|