Re: Application Timeout Required

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Alok (alok_sathaye_at_pune.tcs.co.in)
Date: 07/03/04


Date: Fri, 2 Jul 2004 18:54:23 -0700

On one of the other post said implementing the IMessageFilter and re-setting
the timer.
But, thing is that probably IDle event also goes thru' the Message Filter.
hence that doesn't work...

Considering the Keyboard and mouse, with a full-blown Mdi app, it would be a
monstrous effort to acheive that.
Does anybody have a plug-in / control that can be bought ?? Even a COM
component would work, I suppose !!!

TIA :)

"Gerrit" <msng1@newsgroups.nospam> wrote in message
news:eAMiRbDYEHA.3988@tk2msftngp13.phx.gbl...
> I guess that depends on your app and what the user does within it.
>
> You could attach to the Application.Idle event, check the active control
and
> store it. Set the timer to fire every 20 minutes and reset it when the
"new"
> activecontrol is not the one you have stored (via the Application.Idle
> event). But there are probably more elegant ways to do it.
> Another idea would be track when the user uses the keyboard (use the
form's
> KeyPreview) and/or mouse.
>
> HTH,
>
> Gerrit
>
> "Alok" <alok_sathaye@pune.tcs.co.in> wrote in message
> news:ONuwiUDYEHA.3664@TK2MSFTNGP12.phx.gbl...
> > I actually had thinking about this.
> > But, how do you know, when the user last worked ????
> > Do you mean to say that i trap all user movements like keyboard, mouse
> > etc... ???
> >
> > TIA :)
> >
> > "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
> > news:2kl1vfF3nn2kU1@uni-berlin.de...
> > > * "Gerrit" <msng1@newsgroups.nospam> scripsit:
> > > > System.Windows.Forms.Timer
> > >
> > > Yep. Add a timer that checks the current time every second, for
> > > example, and calculates the difference to the last time the user
worked
> > > with the software.
> > >
> > > --
> > > Herfried K. Wagner [MVP]
> > > <URL:http://dotnet.mvps.org/>
> >
> >
>



Relevant Pages

  • Re: Application Timeout Required
    ... You could attach to the Application.Idle event, check the active control and ... store it. ... Set the timer to fire every 20 minutes and reset it when the "new" ... Another idea would be track when the user uses the keyboard (use the form's ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Time of inactivity
    ... When your timer fires, check the time since you last saw a keyboard or mouse ... The form instantiation code should ... Now anytime one of the event handlers fires ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Painless micro program
    ... What problem did you have with the timer? ... screamer either (12 clocks per op, ... But I've used a 6502 to make a keyboard scanner with N-key rollover - I ... found its architecture very pleasant to work with, ...
    (sci.electronics.design)
  • Repeating keys in XFree86 4.4
    ... After a few minutes, keys seem to stick, repeating until the next ... keyboard control panel. ... AccessXCancelRepeatKey, which cancels the timer. ...
    (freebsd-questions)
  • Re: Logging in and out...
    ... what you have to do is place a timer ... > of the implementation to the static AddMessageFilter method on the ... > (mouse or keyboard) which are sent to the application. ... > Then, in the timer event, you check the TimeSpan between Now (when the ...
    (microsoft.public.dotnet.languages.csharp)