Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically keep a session from idling
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01284395
Message ID:
01284528
Vues:
19
I tried the following code...

STRTOFILE('Mike', 'C:\Temp.txt')
x=CreateObject("word.application")
x.Documents.Open('c:\Temp.txt')
x.Documents.Save()
x.Quit

And it still goes idle. I checked and when this code runs it does change the date time on my file so i know it's accessing it. Any more thoughts?

Thanks!

>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform