PC Review


Reply
 
 
Nikolay Petrov
Guest
Posts: n/a
 
      20th Aug 2004
Hi guys
A have an application for proccessing some sensitive data, which is most of
the time displayed on app windows.
I want after some time of inactivity the application to become locked - its
windows to be hiden or something and a form to be displayed, so the user can
enter his username and password.
When starting this app, users have to login and I automaticly logout them
when they close the app.
But when the application is locked, I don't want to logout users, because
the will lose any changes done.
I only want to hide the app windows.

What I don't know how to track the user inactivity and how to hide all
currently opened form of my app (the user may have couple of forms opened).

TIA

P.S. By inactivity I mean that the user don't move the mouse or use the
keyboard (kind of what windows screen saver tracks), because the user may
just look at the application forms without intecating with my app, but work
with something else.


 
Reply With Quote
 
 
 
 
Hal Rosser
Guest
Posts: n/a
 
      20th Aug 2004

"Nikolay Petrov" <(E-Mail Removed)> wrote in message
news:O%(E-Mail Removed)...
> Hi guys
> P.S. By inactivity I mean that the user don't move the mouse or use the
> keyboard (kind of what windows screen saver tracks), because the user may
> just look at the application forms without intecating with my app, but

work
> with something else.
>

You may be able to do this using the timer control.
Look at the events associated with the forms like keypress and mouseMove,
etc, to disable-then enable the timer - then when the timer's tick event
happens - do your thing - hide forms and show the login form which will in
turn show the forms being used and enable the timer again.
There may be other ways - but this is what comes to mind first.
Hal


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004


 
Reply With Quote
 
Nikolay Petrov
Guest
Posts: n/a
 
      20th Aug 2004
I though about this, but this will track the activity only in this app, not
system wide.
Like I described, the user may just have an open form from my app and look
at it from time to time while working with other apps.
So it must be something system wide, maybe some Windows API to check the
inactivity of user.


"Hal Rosser" <(E-Mail Removed)> wrote in message
news:R1hVc.65$_(E-Mail Removed)...
>
> "Nikolay Petrov" <(E-Mail Removed)> wrote in message
> news:O%(E-Mail Removed)...
> > Hi guys
> > P.S. By inactivity I mean that the user don't move the mouse or use the
> > keyboard (kind of what windows screen saver tracks), because the user

may
> > just look at the application forms without intecating with my app, but

> work
> > with something else.
> >

> You may be able to do this using the timer control.
> Look at the events associated with the forms like keypress and mouseMove,
> etc, to disable-then enable the timer - then when the timer's tick event
> happens - do your thing - hide forms and show the login form which will in
> turn show the forms being used and enable the timer again.
> There may be other ways - but this is what comes to mind first.
> Hal
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lockup StressMonkey Windows XP General 1 20th May 2006 12:17 AM
lockup when using ima[ =?Utf-8?B?UnVzcw==?= Microsoft Outlook 1 1st Feb 2006 10:21 PM
IE Lockup =?Utf-8?B?UmF5IEMu?= Windows XP Basics 1 3rd Apr 2005 07:40 AM
pc lockup John Windows XP General 2 5th Nov 2003 05:04 AM
Lockup Manny Windows XP General 1 2nd Oct 2003 07:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:02 PM.