Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Google
Message
De
24/10/2010 04:33:42
 
 
À
23/10/2010 19:23:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Google
Divers
Thread ID:
01486740
Message ID:
01486747
Vues:
78
>Is there a format for a google search that allows me to send what I am looking for as a result from the google engine from a VFP app? In other words: I want to send one line that will run the Google engine then fill the Google search field and click the search button from a VFP app?

How about


lcgooglestring = "http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q="

lcsearchstring = lcgooglestring + "GRADY McCue"

tcAction = "OPEN"

tcDirectory = SYS(2023)

tcParms = ""

DECLARE INTEGER ShellExecute ;
IN SHELL32.dll ;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow

DECLARE INTEGER FindWindow ;
IN WIN32API STRING cNull,STRING cWinName

RETURN ShellExecute(FindWindow(0,_SCREEN.caption),;
tcAction,lcsearchstring,;
tcParms, tcDirectory,1)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform