不明白用钩子怎么显示这个控键中的密码
因为这个不是一个特定的窗口
不知道有没有其他的方法

解决方案 »

  1.   

    通过脚本来获取
    写一个脚本,作为ie的插件来加载,拦截鼠标消息,鼠标一动,就通过itemfromposition查找到鼠标下面的控件,再检查它是不是password风格的edit,如果是,则通过消息框或别的方式显示它的内容。
    (不能确定从鼠标位置获取元素的函数是不是这个名字)
    function OnMouseMove()
    {
     var item;
     item = ItemFromPosition();
     if(item.className=="edit")
     {
        if(...=="password") Alert(item.text);
     }
    }
      

  2.   

    http://expert.csdn.net/Expert/TopicView1.asp?id=2517911
    http://expert.csdn.net/Expert/TopicView1.asp?id=2288266
      

  3.   

    IHTMLDocument2 接口搞到 IHTMLElement