Thread: Type text = Press button = Display text in Google?

  1. #1
    Registered User
    Join Date
    Mar 2008
    Location
    Austria
    Posts
    4

    Type text = Press button = Display text in Google?

    I made a little app that Searches Google for certain filetypes which i made RadioButtons for.

    What i already have:
    The searchbutton opens Google with this command:
    Code:
    ShellExecute(NULL, "open", "http://www.google.co.uk/search?hl=en&q=TEXTFROMEDITBOX&meta=" ,NULL, NULL, SW_SHOWNORMAL);
    Problems:
    1) The red part should be replaced with the text that you type in the EditBox.
    2) This string should be (invisible) included everytime you type text in the editbox:
    Code:
    -inurl:htm -inurl:html intitle:"index of" ACTIVERADIOBTN "TEXTFROMEDITBOX"
    3) If i Click the Search Button, it should fetch the text from the editbox and the info which RadioButton is checked.


    I know it's kinda lame to ask all this.....but i have no idea where i can learn such specific commands other than from asking people on the forums

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    #2 sounds like a candidate for just adding strings together.

    As for the rest, it's plain Windows programming - getting which radio box and fetching the text out of an edit box has nothing to do with what you are doing with the text, and there should be plenty of examples on the Web for dialog boxes that read text.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Mar 2008
    Location
    Austria
    Posts
    4
    But how do i get the text from the editbox to the part from the URL?

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Raze88 View Post
    But how do i get the text from the editbox to the part from the URL?
    By concatenating several strings, some of which are constants, and some of which are the result of your editbox entry.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    A string tutorial might help you on that. There's on one the site!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 12:23 AM
  2. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  3. gcc problem
    By bjdea1 in forum Linux Programming
    Replies: 13
    Last Post: 04-29-2002, 06:51 PM
  4. Validating the contents of a char buffer
    By mattz in forum C Programming
    Replies: 3
    Last Post: 12-09-2001, 06:21 PM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 07:35 PM