Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command buttons in a form with a browser in it
Message
De
22/10/2012 09:29:57
 
 
À
20/10/2012 08:53:27
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01555394
Message ID:
01555451
Vues:
45
Problem solved!

Just changed code:
oDoc = ThisForm.oleBrowserWin.object.Document
oDoc.Focus()                                        && document must have focus

WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys("+{F10}")
to:
ThisForm.oleBrowserWin.SetFocus ()
WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys("+{F10}")
and it worked, as I wanted to.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform