C#,使用 watin 在 Internet Explorer 中右键单击
使用 WatiN,我正在加载 http://maps.google.com/
我想做的一切右键单击地图,然后在弹出上下文菜单时单击“将地图置于此处”。
另一个很棒的功能是能够在地图上“拖放”鼠标以使地图滚动。
我真的很感激一些帮助。
非常感谢, 菲德尔
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 much,
Fidel
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 WatiN 中的 NativeMethods 类,并通过使用 User32.dll 添加右键单击功能。这样做要记住的是,页面必须具有焦点才能工作,并且您必须知道您单击的项目的位置。
http://www.kbdedit.com/manual/low_level_vk_list.html
只是一个想法。我知道这不是最好或唯一的答案,但它可能会让你暂时摆脱困境。
-托德
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