CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2007
    Posts
    1

    sending text to other applications

    i want to activate and send keystrokes to the textbox of an application that runs on a browser from my visual basic form.i can use the URL of the application running on the browser to accomplish this task. like the block code below

    Set IE = New InternetExplorer
    IE.Visible = True
    IE.NAVIGATE "http:www.sometext..."

    but instead of using the URL i want to use the title on the browser to activate or access the application.the title is the title displayed on the title bar, like "VBForums - Post New Thread - Microsoft Internet Application"
    please anyone to help

  2. #2
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: sending text to other applications

    You may want the "FindWindow" function to get a window handle (hWnd of the browser and then send keystrokes to it.

    Look at www.allapi.net and search for "FindWindow" to get declaration, usage and sample for this function.

  3. #3
    Join Date
    Mar 2005
    Posts
    226

    Re: sending text to other applications

    Use
    SendInput API

  4. #4
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: sending text to other applications

    Welcome to the Forum.

    If you do a little search you will find 100s of examples showing you how to do just that,

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

Featured