Insert text to browser's textbox

This is a discussion on Insert text to browser's textbox within the Windows Programming forums, part of the Platform Specific Boards category; What is the function to write to a browser's textbox? Is it the same as for writing to a window? ...

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    818

    Insert text to browser's textbox

    What is the function to write to a browser's textbox?

    Is it the same as for writing to a window?

    Code:
    DrawText (hdc, TEXT ("Hello!"), -1, &rect, 0) ;
    I cant seem to manage. Thanks!
    Last edited by Ducky; 05-01-2009 at 10:35 PM.
    Compiler MSVC++ 2013 with Code::Blocks.

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,265
    What textbox? The URL input box, or the rendering window?

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    818
    The login box for example.

    Thanks.
    Last edited by Ducky; 05-01-2009 at 10:46 PM.
    Compiler MSVC++ 2013 with Code::Blocks.

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    There's no general way to do what you're trying to do; some browsers may implement it as an actual Windows control, while others may use some internal format for their widgets. Either way, due to security issues, they probably aren't going to publish an API for accessing input fields (I'm just guessing, though).
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  5. #5
    Registered User
    Join Date
    Dec 2007
    Posts
    818
    I understand, thanks for the explanation.
    Compiler MSVC++ 2013 with Code::Blocks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 03-02-2009, 08:33 AM
  2. How to use FTP?
    By maxorator in forum C++ Programming
    Replies: 8
    Last Post: 11-04-2005, 03:17 PM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10:54 AM
  4. Replies: 1
    Last Post: 07-13-2002, 06:45 PM
  5. 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

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