Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening web link
Message
De
11/11/2020 11:24:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Opening web link
Divers
Thread ID:
01677106
Message ID:
01677106
Vues:
61
Dear Sir,

I am using these codes to open whatsapp
Declare  Integer FindWindow In WIN32API String , String
Declare  Integer SetForegroundWindow In WIN32API Integer
Declare  Integer  ShowWindow  In WIN32API Integer , Integer
Declare Integer ShellExecute In shell32.Dll ;
	INTEGER hndWin, ;
	STRING cAction, ;
	STRING cFileName, ;
	STRING cParams, ;
	STRING cDir, ;
	INTEGER nShowWin


cmd='https://web.whatsapp.com'

=ShellExecute(0, 'open', cmd,'', '', 1)
https://web.whatsapp.com/ opens perfectly. No issue

If I run above codes again then a new instance opens
How to know https://web.whatsapp.com/ is already opened?
If found opened already then codes must not open a new instance but go focus to previously opened website.

Regards
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform