C#,使用 watin 在 Internet Explorer 中右键单击

发布于 2024-09-10 15:49:14 字数 229 浏览 5 评论 0原文

使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无法言说的痛 2024-09-17 15:49:14

您可以使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文