Results 1 to 20 of 20

Thread: [RESOLVED] using google in application.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Posts
    214

    Resolved [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?

  2. #2
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: using google in application.

    Did you try using a WebBrowser Control ?

  3. #3
    Lively Member
    Join Date
    Jul 2005
    Location
    Grand Rapids, MI.
    Posts
    74

    Re: using google in application.

    I'll work something up.. give me a couple minutes.

  4. #4
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    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.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Posts
    214

    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?

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Posts
    214

    Re: using google in application.

    Quote Originally Posted by neomulemi6
    I'll work something up.. give me a couple minutes.

    Thanks

  7. #7
    Lively Member
    Join Date
    Jul 2005
    Location
    Grand Rapids, MI.
    Posts
    74

    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.
    Attached Files Attached Files

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Posts
    214

    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 .

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Posts
    214

    Re: [RESOLVED] using google in application.

    Neo I sen you a message can you check it out?

  10. #10
    Lively Member
    Join Date
    Jul 2005
    Location
    Grand Rapids, MI.
    Posts
    74

    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.
    Attached Files Attached Files

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Posts
    214

    Re: [RESOLVED] using google in application.

    Thanks again man, it really helps.

  12. #12

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Posts
    214

    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.

  13. #13
    Lively Member
    Join Date
    Jul 2005
    Location
    Grand Rapids, MI.
    Posts
    74

    Re: [RESOLVED] using google in application.

    Did you add the Web Browser component and the HTML object library?

  14. #14

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Posts
    214

    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 . 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.

  15. #15
    Lively Member
    Join Date
    Jul 2005
    Location
    Grand Rapids, MI.
    Posts
    74

    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?

  16. #16

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Posts
    214

    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.

  17. #17
    Lively Member
    Join Date
    Jul 2005
    Location
    Grand Rapids, MI.
    Posts
    74

    Re: [RESOLVED] using google in application.

    Replace this line in Form1:
    vb Code:
    1. txtBox.Value = Trim(Text1.Text)

    With this, after loading your listbox, assuming your listbox is named "List1."
    vb Code:
    1. txtBox.Value = List1

  18. #18

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Posts
    214

    Re: [RESOLVED] using google in application.

    hmm I did try that and nothing happens

  19. #19
    Lively Member
    Join Date
    Jul 2005
    Location
    Grand Rapids, MI.
    Posts
    74

    Re: [RESOLVED] using google in application.

    Could you post your project for me to have a look at?

  20. #20

    Thread Starter
    Addicted Member
    Join Date
    Sep 2004
    Posts
    214

    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.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width