We have had a few posts recently related to doing functions at specific times. Here is a basic example that can be adapted to call NK commands:
function doRouteAtTime(dst, src, level)
{
function recallRoute()
{
nk.doSwitchWithLabels(dst, src, level);
}
var now = new Date();
var delay = time.getTime() - now.getTime();
if (delay >= 0)
{
ogscript.asyncExec(recallRoute, delay);
}
}
doRouteAtTime('Dest Name', 'Src Name', 'Lvl Name', new Date(2017, 4, 17, 8, 0, 0, 0)); //Note that Date constructor takes Y, M, D, H, M, S, MS and January is month 0
doRouteAtTime('Dest Name 2', 'Src Name 2', 'Lvl Name', new Date(2017, 4, 17, 8, 26, 0, 0));#DashBoard