紧急求救!(用ATL写ASP组件中的一个问题)
我正在用ATL写ASP组件
下面是一个VBScript脚本:
<script language="VBScript">
'Great thanks to Vladimir Romanov(Author of ReGet Pro)
On Error Resume Next
set ps=CreateObject("TESTATL.TEST")
if err<>0 then
Alert("ERROR")
else
Sub GetPassword()
set srcEvent = external.menuArguments.event
Set doc=external.menuArguments.document
set ele=doc.elementFromPoint( srcEvent.clientX, srcEvent.clientY )
if ele.type ="password" then
if ele.value="" then
Alert("密码为空")
else
ele.value=ps.TESTBACK(ele.value)
end if
end if
end sub
call GetPassword()
end if
</script>
TESTATL是我写的一个ATL组件
ele.value=ps.TESTBACK(ele.value)
将取到的密码传到DLL中处理后再传出
现在的问题是:
如何在上面的VBscript脚本中取到选择的网页的TITLE和密码框所在的FORM名?