Hello everyone,
I developed a macro that runs in infinite loop via chrome extension kantu.
I would like this macro to pause at a specific time of the day, for example at 11 pm, the macro stops for 7 hours, and it starts loops again after this pause.
Is it possible to assign a specific time to a pause on kantu?
Thank you all for your help,
Have a great day 
You need to have a javascript which checks if current time is between e. g. 8am and 8pm.
var today = new Date().getHours();
if (today >= 8 && today <= 20) {
......
} else {
.....
}
This macro used this code. It runs a loop until it is “work time” again.
{
"Name": "if time",
"CreationDate": "2019-9-28",
"Commands": [
{
"Command": "echo",
"Target": "start",
"Value": ""
},
{
"Command": "do",
"Target": "",
"Value": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "var today = new Date().getHours(); if (today >= 8 && today <= 20) return \"lazy\"; else return \"work\";",
"Value": "do_work"
},
{
"Command": "echo",
"Target": "do_work = ${do_work}",
"Value": "blue"
},
{
"Command": "repeatIf",
"Target": "${do_work} == \"lazy\"",
"Value": ""
},
{
"Command": "echo",
"Target": "back to work!",
"Value": "green"
}
]
}
for example at 11 pm, the macro stops for 7 hours
I have not tested it if the wait time crossed the day boundary… maybe you still have to improve it a bit for that.