>>Sure it does, that's what the "M" as a parameter does. It returns a 151 when the mouse is clicked. Just what is it you're trying to accomplish?
>
>This is a snippet of the Timer event of the oTimer object that is checking for inactivity.
>
>* check if idle time shutdown is enabled...
>if this.bIdleTimeShutDown
> * process if enabled
> if this.iOldKeyValue =lastkey()
> 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
>endif
>
>
>This 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.
>
>To repeat, I need a way to capture a mouse-click from my oTimer object when the user is just clicking on menus, form buttons, etc. The oTimer runs in the same level as our oApplication object.
>
>Ramil 12/22
BTW, Ramil, what about moving a mouse? Do you need to check it also? The user can switch to Internet and do lots of mouse clicking, mouse moving, etc. Do you consider this as user's activity?
If it's not broken, fix it until it is.
My Blog