Table Of Contents | Index |
The way you use this is to set an internal variable named IdleProgram to the Loc of the procedure you want to run as follows:
Example:Note: Do not use parentheses around MyProcedure.
IdleProgram = Loc MyProcedure
When writing MyProcedure make it as short and quick as possible. As of now, MyProcedure is called continuously while there is no keyboard input. You can also use a loop in it as follows.
Procedure MyProcedure SetItUp while not KBDReady {do your thing} endwhile PutItBack EndProcMarxMenu doesn't automatically exit your procedure or save and restore anything. If you're writing to the screen you have to put everything back the way it was.
If you want to run a program at a specific time, here's how it can be done:
Procedure MyProcedure if Now = TimeOf('11:00pm') Bat 'NIGHT' ;run NIGHT.BAT ExitMenu endif if Now = TimeOf('5:00') Bat 'MORNING' ;run MORNING.BAT ExitMenu endif EndProcTo disable IdleProgram run:
Dispose(IdleProgram)
See Also: | Run | Loc | BlankScreenProgram |
---|
Category: | Execution |
---|
Table Of Contents | Index |
|