本帖最后由 sdlyfjx 于 2013-8-14 19:40 编辑
因为IE界面是从GUI里面通过_IECreateEmbedded()建立的 所以打开窗口后用send TAB 的方式不管用啊 想从网页源码入手,可是不太会哎~
用了下面N个函数#cs
MsgBox(0,0,"linkclick")
_IELinkClickByIndex($oIE2,"综合查询")
MsgBox(0,0,"bytext")
_IELinkClickByText ($oIE2,"综合查询")
MsgBox(0,0,"tagnameall")
$oTags = _IETagNameGetCollection($oIE2,"btn7")
For $oTag In $oTags
If $oTag.title = "综合查询" Then
_IEAction($oTag,"click")
EndIf
Next
MsgBox(0,0,"tagname")
$otagn = _IETagNameAllGetCollection ($oIE2,6)
_IEAction($otagn,"click")
;$oTable=_IEGetObjByName($oIE2,"综合查询")
;_IEAction($oTable ,"click")
#ce
都没有成功 是不是用错了啊 求大神指点一下啊!!!!!!
下面是网页一部分HTML<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML Transitional//EN"><META http-equiv="Content-Type" content="text/html; charset=GB2312">
<html>
<head><style>
BODY
{
margin-top: 0px;
margin-right: 0px;
margin-left: 0px;
}
A:link
{
color: #000000;
text-decoration: none;
}
.topbg
{
height: 42px;
color: #ffffff;
font-family: "Arial";
font-size: 12px;
vertical-align: middle;
background-image: url("../../img/topmenu/top-bg.jpg");
background-repeat: repeat-x;
}
.btn7
{
width: 74px;
height: 23px;
text-align: center;
color: #000000;
font-family: "Arial";
font-size: 12px;
vertical-align: bottom;
}
</style></head>
<body onload="body_onload()"><table width="100%" class="topbg" border="0" cellSpacing="0" cellPadding="0"><form name="mainForm" method="post"><tbody><tr><td width="89%" vAlign="bottom"><table width="100%" border="0" cellSpacing="0" cellPadding="0"><tbody><tr><td><table width="100%" border="0" cellSpacing="0" cellPadding="0"><tbody><tr><td><div id="top_moduleTabDIV"><table id="moduleTab" border="0" cellSpacing="0" cellPadding="0"><tbody><tr><td class="btn7">
<a title="综合查询" onclick="changeTop(this)" href="http://202.194.188.23/menu/top.jsp#" cIndex="6" code="013">综合查询</a>
</td></tr></tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></form></table></body></html>
还有一个问题就是如何让下图的密码处显示的是* 或者是黑点 就是暗文呢?
这部分的代码如下:$MainUI = GUICtrlCreateGroup("登录教务系统", 80, 72, 400, 250)
$xuehao = GUICtrlCreateInput("", 220, 162, 200, 21)
GUICtrlSetLimit(-1, 12)
$mima = GUICtrlCreateInput("", 220, 212, 200, 21)
|