Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Google
Message
From
24/10/2010 04:33:42
 
 
To
23/10/2010 19:23:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Google
Miscellaneous
Thread ID:
01486740
Message ID:
01486747
Views:
79
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform