Getting a C++ program to type text into a Windows box, i.e. Internet Explorer address

This is a discussion on Getting a C++ program to type text into a Windows box, i.e. Internet Explorer address within the Windows Programming forums, part of the Platform Specific Boards category; Hello. I have just started to teach myself C++. I am using Microsoft Visual Studio Enterprise Edition, and running Windows ...

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    1

    Post Getting a C++ program to type text into a Windows box, i.e. Internet Explorer address

    Hello. I have just started to teach myself C++. I am using Microsoft Visual Studio Enterprise Edition, and running Windows 98 Second Edition.

    Most of the program I am making I will be able to write, but there is one thing I do not know how to do. That is to have a program interact with another one, in this case Internet Explorer.

    If it is possible, I would like to have the program I am writing input text into the address box of Internet Explorer, and simulate a keystroke of the enter button. In other words it would put the address in and then hit enter.

    I have no idea how this would be done, hopefully it is not a ton of lines to get it accomplished. Any help would be greatly appreciated. Thanks.

    Knowledge8069

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>If it is possible, I would like to have the program I am writing input text into the address box of Internet Explorer, and simulate a keystroke of the enter button. In other words it would put the address in and then hit enter.<<

    The effect of this would be to launch iexplorer with a particular url. If this is really all you need to do then I would suggest ShellExecute as the most painless method of achieving this. There have been a number of threads on its use/abuse in the past which may be of some interest to you.

    If, however, you want to do it exactly as you have described then that would be considerably more complex.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BN_CLICKED, change button style
    By bennyandthejets in forum Windows Programming
    Replies: 13
    Last Post: 07-06-2010, 12:42 AM
  2. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  3. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 10:45 PM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 07:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21