PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
Forced application timeout w/ inactivity
Forced application timeout w/ inactivity
Started by M. Beaven, Mar., 28 2004 3:10 AM - 3 replies
Connect yourself…
M. Beaven
#1
Posted on March, 28 2004 - 3:10 AM
In a posting by Joe Crevino below, he is having problem with WD timing out with inactivity. I need to replicate this behavior in one of my projects. Does anyone have input as to the best way to accomplish an application timeout globally (regardless of which window in the project is open) ? I know I need to use timersys() in conjunction with cursorpos(), but haven't yet been able to put together workable code.
Thanks for any help.
Marc
Report
0
0
joe crevino
#2
Posted on March, 28 2004 - 6:21 AM
Hi Marc,
I think what I did was in the automatic button validation I had a time with no button specified. This was in the mother window of all the child windows..
the main menu procedure. When I changed the field to never it stopped shutting down. I am not sure if this will help you .
joe
Report
0
0
Raimund Schuldhaus
#3
Posted on March, 28 2004 - 3:38 PM
In a posting by Joe Crevino below, he is having problem with WD timing out with inactivity. I need to replicate this behavior in one of my projects. Does anyone have input as to the best way to accomplish an application timeout globally (regardless of which window in the project is open) ? I know I need to use timersys() in conjunction with cursorpos(), but haven't yet been able to put together workable code.
Thanks for any help.
Marc
Hello Marc,
I would recommend to capture WM_CHAR and maybe some mouse events.
Use Event("CaptureActivity", "*.*", WM_CHAR)
and a procedure
CaptureActivity PROCEDURE(Msg, wParam, lParam)
IF TimeDifference(tLastActivity, Now()) >= 60000 THEN
// End Application or do something after 10 min
ELSE
tLastActivity = Now()
END
You can also use the same procedure with a mouse event (mouse move).
HTH Raimund
Report
0
0
M. Beaven
#4
Posted on March, 30 2004 - 5:51 PM
In a posting by Joe Crevino below, he is having problem with WD timing out with inactivity. I need to replicate this behavior in one of my projects. Does anyone have input as to the best way to accomplish an application timeout globally (regardless of which window in the project is open) ? I know I need to use timersys() in conjunction with cursorpos(), but haven't yet been able to put together workable code.
Thanks for any help.
Marc
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text