* check if idle time shutdown is enabled... if this.bIdleTimeShutDown * process if enabled if this.iOldKeyValue =lastkey() && I need to check mouse-clicks here as well if abs(val(sys(2)) -this.iIdleTimeStart) >this.iIdleTimeAllowed this.ShutMeDown('due to timeout') endif else this.iOldKeyValue =lastkey() this.iIdleTimeStart = val(sys(2)) endif endifThis code will work if the user press any key but will not process mouse-clicks. Putting the INKEY(.01,"MH") function does not really returns 151 unless the user 'happens' to click the mouse at .01 of the same second the timer event executes.