>*!* STRTOFILE('Josh', 'C:\Temp.txt') >*!* x=CreateObject("word.application") >*!* x.Documents.Open('c:\Temp.txt') >*!* x.Documents.Save() >*!* x.Quit > >*!* thisform.MouseDown() >*!* Keyboard('A') >*!* DECLARE integer SetCursorPos in WIN32API integer, integer >*!* =SetCursorPos(600,400) >*!* CLEAR DLLS > >lcTsPath = '\\tsclient\C\temp\Temp.txt' >IF FILE(lcTsPath) > DELETE FILE &lcTsPath >ENDIF >STRTOFILE('TS idle test.', lcTsPath) >ACTIVATE SCREEN _screen >?FILETOSTR(lcTsPath) >Again, I think you have to make the distinction about where this code is running. Is the above code actually running in a VFP app in the TS session, or is it in a process running simultaneously with the TS client on the client computer? I'm beginning to think you probably have to cause the TS client on the client computer to initiate traffic back to the TS session.