I'm using FindWindow()
and FindWindowEx()
to control an application. There are 2 buttons in the application, one named "I Agree" and the second "Cancel". I can find the "Cancel" button but can't find the "I Agree" button.
I'm using FindWindow()
to find the application, and I store the window's process in the hwnd
variable. Then I do this to find and get a button:
hwndChild = FindWindowEx((IntPtr)hwnd, IntPtr.Zero, "Button", "Cancel");
Why can't I find the "I Agree" button, but I can find the "Cancel" button?.
The "I Agree" button is actually "I &Agree". Check out this to find out why. Thanks!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.