获取运行Internet Explorer的实例 [英] Getting the Instance of Running Internet Explorer

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

问题描述

我正在尝试创建一个脚本,以使Internet Explorer的实例已经运行.

是否可以获取实例?

I am trying to create a Script which gets the Instance of an Internet Explorer already running .

Is it possible to get the instance ?

推荐答案

在此站点上关注线程:
Follow the thread on this site: http://www.tek-tips.com/viewthread.cfm?qid=886987&page=356[^]. This should give you a couple of ideas on how to proceed.

Best Regards,

-MRB


我认为此链接应该使您入门: ^ ]
I think this link should get you started: http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/4c1dc942-da7b-427d-9a5f-52b9354dac2b/[^]


严格来说,这个问题没有道理.您所说的实例"是什么意思?您可以在调用进程的内存空间中获得进程句柄的实例 ;您还可以获取主窗口的HWND(如果有).那几乎就是您所能做的.您可以使用此窗口进行操作,甚至可以模拟键盘和鼠标的输入.您无法访问过程参数或触发任何处理.

您是否知道系统中的所有进程都是高度隔离的?它们甚至在不同的地址空间中运行.所有地址和句柄都不同,甚至那些代表共享且物理上相同的对象(在这种情况下,除了HWND和进程句柄之外,您都无法获得).

—SA
Strictly speaking, the question makes no sense. What do you mean by the "instance"? You can get an instance of the process handle in the memory space of the calling process; you can also get a HWND of the main window, if any. That''s pretty much all you can do. You can manipulate with this windows and even simulate input from keyboard and mouse. You cannot access process parameters or trigger any processing.

Did you know that all processes in the system are highly isolated? They even run in different address spaces. All the addresses and handles are different, even those representing shared and physically identical objects (which you cannot get in this case, except HWND and process handle).

—SA


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

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