Re: how to click at a option programatically
- From: mnachtvogel@xxxxxxxxx
- Date: 24 Aug 2005 07:47:14 -0700
Thanks Igor,
I tried your solution, but I must have made a mistake somewhere.
I tried the fireEvent of the Document4 interface, I got the feeling,
that is not correct. Or maybe the parameters where incorrect.
But now that your reply revealed that I must activate the "onchange"
event, I found another solution.
Maybe it will be useful to someone else having the same problem.
1.) I select the desired option by IID_IHTMLOptionElement put_selected
2.) I walk the dom up to retrieve the IID_IHTMLSelectElement
3.) from this I get the get_onchange
4.) I call Invoke on this IDisp
useful links:
http://groups.google.at/group/microsoft.public.inetsdk.programming.mshtml_hosting/browse_thread/thread/5d608f10d91e3f30/41853756b900e7d3?q=get_onchange&rnum=2#41853756b900e7d3
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/automat/htm/chap5_61id.asp
http://groups.google.at/group/microsoft.public.inetsdk.programming.webbrowser_ctl/browse_thread/thread/1a57631099fb3935/d8ce15f2ecf829c6?q=get_onchange&rnum=1#d8ce15f2ecf829c6
thanks again
mike
.
- Follow-Ups:
- Re: how to click at a option programatically
- From: Igor Tandetnik
- Re: how to click at a option programatically
- References:
- how to click at a option programatically
- From: mnachtvogel
- Re: how to click at a option programatically
- From: Igor Tandetnik
- how to click at a option programatically
- Prev by Date: Re: How to enable visual styles in BHO
- Next by Date: Re: how to click at a option programatically
- Previous by thread: Re: how to click at a option programatically
- Next by thread: Re: how to click at a option programatically
- Index(es):