troubleshooting Question

how to paste into browser control Find box, or pre-stuff it with search string ?

Avatar of cgrandgent
cgrandgent asked on
C++System Programming
3 Comments1 Solution360 ViewsLast Modified:
I have launched a Find box for a IWebBrowser2 control via ExecWB(OLECMDID_FIND........
I have copied the search string to the clipboard, and wish to paste it into the Find box (a better alternative would be to specify the search string at ExecWB time).
I have enumerated the windows and located the window so I could make sure it has focus.
It apparently is maybe CDHtmlDialog and not a regular text window.
If from the keyboard I do CTL-V or right-click and select "paste", it pastes in OK, but doing it via keybd_event() or SendInput() doesn't do the trick, nor does SendMessage(hwnd,WM_PASTE,0,0).
How to work this magic ?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros