Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetWindowFocus problem
Message
De
08/03/2004 10:30:28
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00883650
Message ID:
00884090
Vues:
10
George,

Thanks for the help. I think I just need to bring the WinFax window to the front. The Winfax 'send fax' screen automatically opens when I run my report form command to generate the report. The problem is that it doesn't automatically come to the top. Before I was able to simply get that window to the top when I needed to using the SetWindowFocus method of the sendkeys utility. Something on the client's computer however is keeping the window from coming to the top now.


So I'm not 100% sure that a SetWindowFocus call will solve my problem because I figure the sendkeys.dll is probably using the same method. But I really don't have an easier solution at this point.

Greg

>>Greetings,
>>
>> I have a fax automation application that uses FoxPro to drive WinFax. Everything was working perfectly fine for well over 2 years. A few days ago it started messing up. I've tracked down the problem to a call to SetWindowFocus in my Sendkeys.dll that I'm using to send keystrokes to the fax software. I've tried calling this method many times and the window never comes up on top like it did before.
>>
>>I'm now considering using the API directly rather than going through the sendkeys.dll to pop the window to the top. It may result in the same problem but I figured it's worth a shot.
>>
>>Can anyone give me the VFP code to bring another applications window to the front. Right now I simply say.
>>
>>
>>oSendKeys.SetWindowFocus("WinFax PRO Send")
>>
>>
>>Thanks for the help!!!
>>
>
>Greg,
>
>Couple of things come to mind. You could call the ShowWindow() API call. However, if the Windows Script Host is an option, you could use that to start the application, activate the app and send the keys (without the dll).
>
>Let me know which one is of interest.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform