[RESOLVED] using google in application.
I am trying to use an inet control or webbrowser control to search google with the keywords I insert into a textbox. I am trying to get the google results to be displayed into a listbox. Or just get all the result links into a textbox or temp file. I am having no luck with this, can anyone help?
Re: using google in application.
Did you try using a WebBrowser Control ?
Re: using google in application.
I'll work something up.. give me a couple minutes.
Re: using google in application.
ok. did you try manipulating the out put of InetTransfer control? i think you can split the results you receive from inetTransfer control and load in to your list view.
Re: using google in application.
http://www.google.com/search?q=test ..anything after the = is the search query. Or did you mean tag for the reslut?
Re: using google in application.
Quote:
Originally Posted by neomulemi6
I'll work something up.. give me a couple minutes.
Thanks :)
1 Attachment(s)
Re: using google in application.
Here you go... should get you started. This is very basic and the clicking of the buttons can all be automated to a single click.. Just click the buttons in order from left to right.
Re: using google in application.
Quote:
Originally Posted by neomulemi6
Here you go... should get you started. This is very basic and the clicking of the buttons can all be automated to a single click.. Just click the buttons in order from left to right.
WOW Awsome, that is exactly what I was looking for! Thanks alot :).
Re: [RESOLVED] using google in application.
Neo I sen you a message can you check it out?
1 Attachment(s)
Re: [RESOLVED] using google in application.
Here you go.. this should do everything you need. The error handling is minimal, but you shouldn't encounter errors often. I figured you could handle that yourself.
Re: [RESOLVED] using google in application.
Thanks again man, it really helps.
Re: [RESOLVED] using google in application.
Neo, when testing your application it works good but I when I try to insert it into a test project I get the "User-Defined Type Not Defined" Is there a reference I need to add? Im not understanding why it doenst work when i load it into a new pj.:(
Re: [RESOLVED] using google in application.
Did you add the Web Browser component and the HTML object library?
Re: [RESOLVED] using google in application.
sorry I resolved it I didnt add the HTML object reference I basically opened 2 projects up and 2 reference boxes up and they had the same amount checked but I did not bother to read them :o . Anyways I sent you a pm but will ask in here aswell, you do not need to provide me with another example but is there a way using you code to load the key words from a list box instead of of the text box, I tried doing it myself kept geting errors, again sorry to bother but you seem to really know what your doing.
Re: [RESOLVED] using google in application.
I'm not sure what you mean, can you specify a little more? Do you want to be able to load a URL directly from the listbox instead of opening Form2?
Re: [RESOLVED] using google in application.
Sorry for not being clear, I mean in form1 where it asks for the keywords to be searched I was wondering instead of using the textbox to input the keywords I was wondering if its possible to use the list box to imput keywords into google.
Basically my program loads a file into the list box with key words so I was wondering if I could use that.
Re: [RESOLVED] using google in application.
Replace this line in Form1:
vb Code:
txtBox.Value = Trim(Text1.Text)
With this, after loading your listbox, assuming your listbox is named "List1."
Re: [RESOLVED] using google in application.
hmm I did try that and nothing happens
Re: [RESOLVED] using google in application.
Could you post your project for me to have a look at?
1 Attachment(s)
Re: [RESOLVED] using google in application.
hey here is my project for you to look at, it is a real mess right now so you may not be able to tell what I am trying to acomplish at the moment. I am trying to get the google search query to come from the listbox as opposed to text box, then after that I am going to try to incorporate your google code in the harvester form. After that I may try with different search engines as well. That is the run down of it..hope u can take a good look and help me out.