Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the focus to my app
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00608044
Message ID:
00608145
Vues:
17
This message has been marked as the solution to the initial question of the thread.
>I am trying to find an api or other function that I could use to make sure I am focused on the correct application. The reason... I have 5 instances of the same app running all communicating on a seperate port to handheld device's. When the device returns reply to app i need to be on the correct app. any help?

You want to check the process id against the process id of the current foreground task; this is best done using the WinAPI. I have a FAQ posted, #674, that demonstrates how to check the process in the foreground against the specific running instance in question
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform