OI: 9.4.1
I want to use IDLEPROC to make OI do something every minute, even when the PC is locked. This does work (unlike the TIMER event, which doesn't fire when the computer is locked).
However, there is one case where IDLEPROC does not work:
1. Schedule IDLEPROC to run an OI program every minute.
2. Open a popup. When the time comes for IDLEPROC to run, OI will crash to the debugger:
SYS1000: Error loading program <program name>
Am I doing something wrong? Or is this just how things are:
reschedule_program_to_run: cmd = "" cmd<1> = program_name$ next_run_time = time() + check_interval_seconds$ ;* next 1 minute next_run_day = date() if next_run_time >= 86400 then next_run_day += 1 next_run_time = 0 end cmd<3> = oconv(next_run_time,"MTS") cmd<4> = oconv(next_run_day,"D2/") Set_Property("SYSTEM", "IDLEPROC", cmd) returnBTW, if you can tell me how I can get the TIMER event to run when windows is locked, that would also help.
Hi,
Don't worry. Don Bakke has told me how to fix this.
Apparently the first argument of cmd (the program name) needs to be in capital letters.