Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening web link
Message
From
11/11/2020 11:24:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Opening web link
Miscellaneous
Thread ID:
01677106
Message ID:
01677106
Views:
62
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
Next
Reply
Map
View

Click here to load this message in the networking platform