Richard Leahy wrote:
> Hi, thank you for your reply. I have tried the FindWindow which works
> great how ever It cant find the window i am after.
> ...
> test = windll.user32.FindWindowA(None, "Windows App") // find the
> first window perfectly
>
> if not test:
>     print "[*] cant find window"
>
> test = windll.user32.FindWindowA("edit", None) // cant find the edit
> box window. any ideas?

You don't NEED this second call.  The number you get from the first call
is the handle to the dialog.  Just pass that to SetDlgItemText along
with the control ID (1).

The reason is fails is that FindWindow only returns top-level windows,
not child windows.  It IS possible to use FindWindowEx to search child
windows, but you don't want that.  What you NEED is the top-level dialog
(which you have) and the control ID (which you also have).

-- 
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to