Results 1 to 9 of 9

Thread: check text in another application

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2009
    Posts
    40

    Question check text in another application

    hello
    i see in some game while game is runing if write my username in any other application like yahoo,msn,Browser ,even not in notebad
    it show Warn that this username is protected
    so i want in my application to monitor if user try to write any data from my program into another program
    by another way :
    i want to check other application that contain texts(labels,lists,text boxes,.....etc) all other application Start from folders, Browsers, ...etc
    is there some way ??
    if not in VB6 can i made this at VB.net ??(prefer VB6)
    thanks

  2. #2

    Thread Starter
    Member
    Join Date
    Mar 2009
    Posts
    40

    Re: check text in another application

    hey
    is my question is not clear ???
    or there aren't any solution for this ??
    or it is very hard ?


    ok as apart of my questions :
    just want to know how to check(search for) Text in web page Browser??


    i hope some one replay me this time
    thanks

  3. #3
    Hyperactive Member
    Join Date
    Apr 2009
    Posts
    358

    Re: check text in another application

    You're not being clear at all, I feel like what you're asking is if you can protect a sign in ID for your program from it being used on MSN or something, which I'm pretty sure is not possible, and if you're talking about something else, then I can't help you.

  4. #4

    Thread Starter
    Member
    Join Date
    Mar 2009
    Posts
    40

    Re: check text in another application

    sorry if it is not clear from start

    no i want to search for some text in another application
    lets say for now i want to search for some text in Browser

    i try one but it just search in special url not at browser
    (it search at some thing like that
    vb Code:
    1. check (wanted text , Page you want url)
    that not i need , i need like this
    vb Code:
    1. check(my text, process my default browser or word document)
    is it clear now ??

  5. #5

    Thread Starter
    Member
    Join Date
    Mar 2009
    Posts
    40

    Re: check text in another application

    hello if there are no solution for this
    please tell me

  6. #6
    Frenzied Member
    Join Date
    Mar 2009
    Posts
    1,182

    Re: check text in another application

    Some API's to get you started...

    FindWindow or FindWindowEx
    EnumChildWindows
    SendMessage with gettext parameter

    Tools you will need to employ to help you get what you want...

    Spy++


    Good Luck
    Option Explicit should not be an Option!

  7. #7
    Addicted Member ZenDisaster's Avatar
    Join Date
    Dec 2006
    Location
    Bay Area, CA
    Posts
    140

    Re: check text in another application

    Your best bet is probably a system-wide hook, like a keylogger almost. This way you can watch all keyboard input without having to watch every window and application opened in Windows.

    In fact, this may be the only way to reasonably watch every possible window.

    System-wide hooks are not a trivial undertaking. I would suggest a book;
    Subclassing & Hooking with Visual Basic. ISBN: 0-596-00118-5.

    It covers both VB and VB.NET. There's a couple on Ebay right now but they're kinda expensive. You should be able to find it at a used bookstore for like $10.00.

    Good luck.

  8. #8

    Thread Starter
    Member
    Join Date
    Mar 2009
    Posts
    40

    Re: check text in another application

    Quote Originally Posted by ZenDisaster View Post
    Your best bet is probably a system-wide hook, like a keylogger almost. This way you can watch all keyboard input without having to watch every window and application opened in Windows.

    In fact, this may be the only way to reasonably watch every possible window.

    System-wide hooks are not a trivial undertaking. I would suggest a book;
    Subclassing & Hooking with Visual Basic. ISBN: 0-596-00118-5.

    It covers both VB and VB.NET. There's a couple on Ebay right now but they're kinda expensive. You should be able to find it at a used bookstore for like $10.00.

    Good luck.
    thanks For replaying and sorry for late i was lost the thread URL

    [vb5prgrmr]

    thanks i think you understand what i need

    i will search this APi and Study it and tell you

    [ZenDisaster]
    thanks but this not solution as the text may be already in page or writen by some programs like on-sceen Keyboard
    so i need to search in Browser pages or programs that have text tools like text boxes labels ...

    thanks agian

  9. #9
    Hyperactive Member
    Join Date
    Jun 2009
    Posts
    441

    Re: check text in another application

    Using Sendmessage api Or DDE, you can transfer strings from an application to another !

Tags for this Thread

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