Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inactivity Time out
Message
De
04/06/2002 11:39:33
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
04/06/2002 11:35:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00664534
Message ID:
00664536
Vues:
16
>Hello
>
>What would be the best time to detect an application timeout ?
>
>If the user is not active for a period of time I would like to shutdown the application. This is to allow backup at night.
>
>Any ideas ?
>
>Xavier

Use a Timer object. Reset it every time the user presses a key. When the time elapses, call the code to shut down.

Detecting keystrokes requires to intercept Form.KeyPress(), and setting Form.Keypreview = .T.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform