PUBLIC oT oT = CREATEOBJECT('mytimer') DEFINE CLASS mytimer AS timer nRow = 0 nCol = 0 nLastKey = 0 Interval = 5000 PROCEDURE Init this.SetValues() ENDPROC PROCEDURE timer IF this.nRow = MROW() and this.nCol = MCOL() and ; this.nLastKey = LASTKEY() MESSAGEBOX('No movement has been detected.') ELSE this.SetValues() ENDIF ENDPROC PROCEDURE SetValues this.nRow = MROW() this.nCol = MCOL() this.nLastKey = LASTKEY() ENDPROC ENDDEFINEIf you leave your mouse and keyboard in the same state for 5 seconds (the Interval property) you get a messagebox() saying no movement has been made.