Thread: Search for color or text?

  1. #1
    Pawn, Pascal and C++
    Join Date
    Sep 2005
    Posts
    90

    Search for text on screen or a file

    1) How would I search for text on the screen?
    (Like finding the word "text" in this thread)

    2) How would I search for a program and then open it if I dont know
    the exact file location?
    Last edited by XunTric; 11-01-2005 at 01:46 PM.

  2. #2
    Pawn, Pascal and C++
    Join Date
    Sep 2005
    Posts
    90
    Someone?

  3. #3
    Pawn, Pascal and C++
    Join Date
    Sep 2005
    Posts
    90
    Someone has to know it? :P

  4. #4
    ^ Read Backwards^
    Join Date
    Sep 2005
    Location
    Earth
    Posts
    282
    1.)
    If the text is in a string, there is:
    http://www.cppreference.com/cppstring/find.html
    http://www.cppreference.com/cppstrin..._first_of.html
    http://www.cppreference.com/cppstring/find_last_of.html
    http://www.cppreference.com/cppstring/rfind.html

    If it is just something you cout'ed it is a lot more complicated.

    2.) OS specific.
    It can be fairly easily done with the system() command though.

  5. #5
    Pawn, Pascal and C++
    Join Date
    Sep 2005
    Posts
    90
    Well, how I do it with a system command?

  6. #6
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    XunTric, you bumped twice, that illegal.

  7. #7
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Logical errors with seach function
    By Taka in forum C Programming
    Replies: 4
    Last Post: 09-18-2006, 05:20 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM