获取外部Internet Explorer的URL [英] Fetching the url of an external Internet Explorer

查看:108
本文介绍了获取外部Internet Explorer的URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一种方法来获取外部IE中的当前URL。


我最终找到了一种方法,但由于某些原因,它没有不行。可能是因为我的IE版本。我在IE6和IE7上测试了程序,但没有一个工作


该程序使用:

findWindow

getClassName
sendMessage

解决方案

您好,


您可以发布代码..?


在FindWindow找到父窗口(即IE)之后,需要使用EnumChildWindows来查找组合框。一旦你有了组合框的句柄,就可以使用带有WM_GETTEXT常量的SendMessage API ...


另外:间谍++在这里会有很大的帮助...



祝你好运


您好,感谢您回复我的帖子。

其实我解决了每10毫秒检查一次窗口的标题。

IE在加载页面之前将其标题更改为打开的URL。


但无论如何找到解决此问题的逻辑方法会很棒。


继承人我的代码


模块

展开 | 选择 | Wrap | 行号

I''v been looking around to find a way to fetch the current URL in an external IE.

I finaly found a way to do it but for some reason it doesn''t work. It might be because of my IE version. I tested the program on IE6 and IE7 but none of them work

The program uses :
findWindow
getClassName
sendMessage

解决方案

Hi,

Can you post the code..?


After FindWindow to find the parent window (i.e. IE), you need to use EnumChildWindows to look for the combo box. Once you have the handle to the combo box, you can use the SendMessage API with the WM_GETTEXT const...

Also: Spy++ would be of great help here...



Good Luck


Hi and thanks for replying my post.
Actually I solved the issue by checking the title of the window every 10 ms.
IE changes it''s title to the url it''s opening before loading the page.

But anyways finding a logical way to solve this problem would be great.

Heres my code

Module

Expand|Select|Wrap|Line Numbers


这篇关于获取外部Internet Explorer的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆