Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending keystrokes to non VFP windows
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00158751
Message ID:
00159551
Vues:
24
>You probably know more about that than I do.:-)

Nope, I was just shooting from the hip. If you've tried it and it doesn't work, then it doesn't work. :)

>The only way I could get anything sent to another app was to, first ShowWindow(), followed by SetActiveWindow(), followed by SetForegroundWindow(). Not good.

That's better than nothing! Again, I did my testing with a Win 98 beta, and the problems I was seeing probably don't exist anymore (though they may reappear in NT 5). Since my goal was simply to paste data into whatever program was active, it really didn't matter.

> Have you looked at the possibility (in VC++ or VFP) of using SendMessage() to do this. I glanced at it, but haven't had time to pursue it.

I was unsuccessful with this. If memory serves (never a foregone conclusion), it wasn't possible to send messages to a window not in the current thread (originally I just wanted to send the "paste" message to the current app). This is a way that Win 98 tries to prevent programs from screwing each other.

But, again, it's been a while...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform