Thread: Is It Possible??

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

    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,793
    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,138
    Thanx o knowledgable one!

Popular pages Recent additions subscribe to a feed