<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>16 Nov 2015 22:36:00 Z</lastBuildDate><pubDate>16 Nov 2015 22:36:00 Z</pubDate><description>I need to log out users if they are idle for more than 10 minutes. The only thing I have left to do is flip a boolean on a mouse or keyboard event. Is there an easy way to listen for mouse/keyboard events?&#13;
&#13;
// WIN_Main global variables gbAppIdle is boolean = True gduAppIdle is Duration // Timer called from end of init of WIN_Main //// Automatic Procedure: // The procedure is run manually, during a call in the code // It will be repeated in loop, with a timeout set to 1 second between each call // Each following call runs the procedure once, without timer // PROCEDURE IdleLoginTimer() duTemp is Duration duTemp..Minute = 10 IF gbAppIdle THEN gduAppIdle..Second+=1 // If idle for more than 10 minutes log out IF gduAppIdle &gt;= duTemp THEN ExecuteProcess(BTN_LogOut,trtClick) ELSE gduAppIdle = 0 gbAppIdle = True END</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54977-wd20-listen-for-mouse-keyboard-event/read.awp</link><title>[WD20] Listen for Mouse/Keyboard Event</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
