Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is an Application Running?
Message
 
À
12/01/2004 11:44:45
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00841182
Message ID:
00866019
Vues:
28
>George,
>
>Is there a way to refine the string match? My application is named "Drawing PDM". I use the code you lead me to to see if this app is running already and will not allow a second instance if it is. I have a user manual named Drawing PDM Users Manual. If the user manual is active the app will not start.

Steven,

Most application's show the file being worked on in the title bar, like this: "mywordfile.doc - Microsoft Word". If this is the case here, I would pass something like " - Microsoft Word" or ".doc - Microsoft Word" since it uses the $ operator to determine if the title bar contains the title passed.

If this isn't the case, then you could use FindWindow() passing the classname. If you can't use the above suggestion with Is_Run32(), let me know and I'll provide further details.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform