Thread: Insert text to browser's textbox

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

    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 09:35 PM.
    Using Windows 10 with Code Blocks and MingW.

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

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

    Thanks.
    Last edited by Ducky; 05-01-2009 at 09:46 PM.
    Using Windows 10 with Code Blocks and MingW.

  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
    930
    I understand, thanks for the explanation.
    Using Windows 10 with Code Blocks and MingW.

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, 09:54 AM
  4. Replies: 1
    Last Post: 07-13-2002, 05: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, 09:45 PM