How to triggers with system's time?

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

Kyubiko
Noob
Noob
Posts: 12
Joined: 10 Dec 2011, 19:06
Noob?: Yes

How to triggers with system's time?

#1 Post by Kyubiko »

automacro min {
run-once 1
timeout 1
$.hour = 0
$.minute = 0
$.second = 0
call {
.
.
}
}

How to triggers with system's time?
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: How to triggers with system's time?

#2 Post by EternalHarvest »

There is "localtime" automacro condition.
Kyubiko
Noob
Noob
Posts: 12
Joined: 10 Dec 2011, 19:06
Noob?: Yes

Re: How to triggers with system's time?

#3 Post by Kyubiko »

Code: Select all

automacro min {
run-once 1
timeout 1
localtime (.*):0:0
call {
.
.
}
}
you mean this??
Kyubiko
Noob
Noob
Posts: 12
Joined: 10 Dec 2011, 19:06
Noob?: Yes

Re: How to triggers with system's time?

#4 Post by Kyubiko »

Kyubiko wrote:

Code: Select all

automacro min {
run-once 1
timeout 1
localtime (.*):0:0
call {
.
.
}
}
you mean this??
Yes!
But localtime can't use (.*)
localtime (.*):0:0 can't run
localtime 20:0:0 can run
new version can use??
If I want run 1 times each hour (x:0:0)
How can I do?
kaiser018
Noob
Noob
Posts: 1
Joined: 07 May 2012, 21:20
Noob?: No

Re: How to triggers with system's time?

#5 Post by kaiser018 »

Code: Select all

automacro min {
timeout 3600
call {
.
.
}
}
This will run your code every hour from the time of your login.
good1
Human
Human
Posts: 24
Joined: 18 Jul 2012, 11:48
Noob?: No

Re: How to triggers with system's time?

#6 Post by good1 »

kaiser018 wrote:

Code: Select all

automacro min {
timeout 3600
call {
.
.
}
}
This will run your code every hour from the time of your login.
but it not trigger at exactly 00:00 of an hour right?