Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 13 AUG 2021 09:02:18AM Joshua Goddard wrote:

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)

return

BTW, if you can tell me how I can get the TIMER event to run when windows is locked, that would also help.


At 14 AUG 2021 06:15AM Joshua Goddard wrote:

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.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/fcf670fc604ac341a154256afc77d9e3.txt
  • Last modified: 2024/01/04 20:57
  • by 127.0.0.1