Is It Possible??

This is a discussion on Is It Possible?? within the Windows Programming forums, part of the Platform Specific Boards category; When a window pops up and there is a form that wants the user to input text, like in a ...

  1. #1
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136

    Is It Possible??

    When a window pops up and there is a form that wants the user to input text, like in a wizard, is it possible to have a program paste the text in for it?

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    In a word - Yes...

    Use Spy++ to find the windows class of the popup....then in your program use that class with FindWindow() to get a handle to the window....

    Then use FindWindowEx to locate the edit control....(Spy++ come in good here)

    The send the edit control a WM_SETTEXT message with LParam as the string.....

    That should do it

  3. #3
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    Thanx o knowledgable one!

Popular pages Recent additions subscribe to a feed

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