【发布时间】:2009-07-28 15:12:17
【问题描述】:
我正在努力控制一个 IE 预览控件,它是使用 perl 的外部 Windows 应用程序上的“Internet Explorer_Server”类。
Internet Explorer_Server 是窗口的类名,我用 Spy++ 找到了它。这是我的断言代码
$className = Win32::GUI::GetClassName($window);
if ($className eq "Internet Explorer_Server") {
...
}
我可以使用Win32::GUI::GetWindow 获得那个“Internet Explorer_Server”的句柄,但不知道下一步该做什么。
【问题讨论】:
-
你能解释一下 Internet Explorer_Server 是什么吗?
-
Internet Explorer_Server 是窗口的类名,我用 Spy++ 找到的。这是我的断言代码 $className = Win32::GUI::GetClassName($window); if ($className eq "Internet Explorer_Server") { ... }
-
@crowdy 我根据您的评论更新了我的答案。
标签: windows perl internet-explorer automation win32ole