Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically keep a session from idling
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01284395
Message ID:
01284406
Views:
19
Just a thought, have you tried touching a file at specific intervals?

>I have a terminal server in which the idle session timeout is set to 2 hours. I want it this way with one exception. I have one terminal that runs an automated process every 5 minutes. I do not want this to run on the console. It is a Fox Pro form with a timer and every 5 minutes it connects to a remote server and retrieves some information from another Sql Server. Currently a user has to move the mouse every so often to keep it from timing out. Is there a Fox Pro command, or some way within a FoxPro form to keep a terminal services session from going idle? I have tried the KEYBOARD command, and have also used ...
>
>DECLARE integer SetCursorPos in WIN32API integer, integer
>=SetCursorPos(600,400)
>CLEAR DLLS
>
>to move the mouse around and it still goes idle. Any ideas are greatly appreciated.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform