开发者

C#, right click in internet explorer using watin

开发者 https://www.devze.com 2023-01-08 03:29 出处:网络
Using WatiN, I\'m loading up http://maps.google.com/ All I want to do is right click the map and click \"Center map here\" when the context menu pops up.

Using WatiN, I'm loading up http://maps.google.com/

All I want to do is right click the map and click "Center map here" when the context menu pops up.

Another great feature would be to be able to "drag and drop" the mouse on the map so as to make the map scroll.

I would really appreciate some help.

Thankyou very 开发者_C百科much, Fidel


You can work with the NativeMethods class in WatiN and add the functionality for right click through the use of the User32.dll. The thing to remember with doing it this way is that the page will have to have focus for this to work and you will have to know the location of the item in which you are clicking on.

http://www.kbdedit.com/manual/low_level_vk_list.html

Just a thought. I know it is not the best or only answer but it might get you unstuck for now.

-Todd

0

精彩评论

暂无评论...
验证码 换一张
取 消