怎样附加到指定进程pid的ie实例呢?[已解决]
本帖最后由 xzxnovice 于 2013-11-5 08:24 编辑怎样附加到指定进程pid的ie实例呢? $hwnd = _pid_jb($pid)
;~ 参数为PID,可由run返回。
Func _pid_jb($pid)
Dim $jb = ""
While $jb = ""
$win_list = WinList("")
For $i = 1 To $win_list
If BitAND(WinGetState($win_list[$i]), 2) And WinGetProcess($win_list[$i], "") = $pid Then $jb = $win_list[$i]
Next
WEnd
Return $jb
EndFunc ;==>pid_jb
$oIE = __IEAttach($hwnd,'hwnd')
页:
[1]