>>>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.
>>
>>
>>yes; this VFP app is running in the TS session causing RDP traffic using the FileToStr and StrToFile functions.
>
>Check my other discussion branch with Dragan - I think you need to create a process on the
client computer, that "automates" the TS client (or somehow passes Windows messages to it), thereby causing it to move the mouse slightly, press some keystroke like the Shift key, etc. The process you create might be a Fox app, could be something else. You can search messages here for message passing to other programs from Fox if that's the way you'd like to go.
Putting a program client side might would work, except the client is a dumb terminal used just for connecting to Terminal Services, this limits us in what we can do client side.