Good idea. One question though: Does WSH require anything on the client's machine (else than what the client get's with the normal Visual FoxPro setup Wizard?)
>>Hello,
>>
>>I want to find a window that contains a text string.
>>I tried to use FindWindow in User32.dll, but the problem is, that I don't know the complete string, only the first part of it.
>>FindWindow however needs the full name of the complete window caption.
>>
>>Which function can I use to find a window having only a part (the beginning of the text like "Inbox -" for example) of the text string?
>>
>
>THe easiest way may be to use the Wscript.Shell AppActivate mechanism, if bringing the Window to foreground and setting focus to it is your desired effect; this can be used in conjunction with the WSH's SendKeys method to send keystrokes to the targeted Window. See the article George Tasker and I wrote on the Wscript.Shell object for the October issue of the VFUG newsletter;
www.vfug.org, or try any of the WSH sites from my sig block.
Christian Isberner
Software Consultant