Mail Archives: djgpp/1998/07/20/21:32:53
Sean Middledich schrieb:
> If it was for MS-DOS, you would need to make it a TSR. This can be done
> using Interrupt 21h, function 31h or interrupt 27h. You then need tomoniter
> the keyboard interrupt ( 09h ).
you have to redirect interrupt 9h, so that it points to a routine you
programmed. You mustalso reprogramm the timer interrupt. this one starts after a
defined time, in which there was no message from your keyboard handler, the
screensaver effect.
The message would normally be a variable to be set if there was a key hit. The
timer int checks this variable, and sets it back.
and if it had been set it also sets back the time till calling the screensaver
effect.
You should do the same with int 33h (mouse)
but don't forget to call the old int handlers as well!!!
Harald Meyer
- Raw text -