这是一个公司内网的网页,网页有多个框架组成,其中一个列表源文件如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>AppList</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="/Desktop/Skins/Default/CSS/Desktop.css" type="text/css" rel="stylesheet"></LINK>
</HEAD>
<body MS_POSITIONING="FlowLayout">
<form name="AppList" method="post" action="applist.aspx?%24ctlid=5843396c-d8a8-4e51-bca4-ca5648107056" id="AppList">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTMzMTUzNzI3Mw9kFgICAw9kFgICAw8WAh4LXyFJdGVtQ291bnQCERYiZg9kFgJmDxUDJGY2MmJhMTljLWUyMTItNGU2NC1iYmM3LTQ2YzVlNGQ5YmQyZhcqTUVT5oqA5pyv5pSv5oyB5Lit5b+DKiHkuK3lm73nn7PmsrlNRVPmioDmnK/mlK/mjIHkuK3lv4NkAgEPZBYCZg8VAyQ2NTYxZGVkMy1mODE2LTQ0MzctYjU4Zi1iMTM1MzQ4NzMyOGMcXCrnlKjmiLfluK7liqnmlofmoaPkuIvovb0qLxxcKueUqOaIt+W4ruWKqeaWh+aho+S4i+i9vSovZAICD2QWAmYPFQMkOTlhMTk4MTQtMDhiZi00YTE0LThlMjQtYzQ4YmM0ODQ0MmUzEVox5bel6Im65rWB56iL5Zu+EVox5bel6Im65rWB56iL5Zu+ZAIDD2QWAmYPFQMkMWRmMDFkNmQtMDllNC00MzQ5LWIxZTktYjI3ZjA5ODE5NTlkFFoy55S15a2Q5bel6Im65Y+w6LSmEueUteWtkOW3peiJuuWPsOi0pmQCBA9kFgJmDxUDJGE0OWQ1NzE3LWNjYmUtNDFjNS1iMWMxLTAxZTU2MjQ3ZDFmOBFaM+ijhee9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tYHnqIvlm74V54mp5paZ5rWB5ZCR5rWB56iL5Zu+ZAIOD2QWAmYPFQMkY2Y1ZTEzMjAtODc5OS00ZTA3LTg3NTQtZmZiNGNmMGU3NTA4DOeJqeaWmeW5s+ihoQznianmlpnlubPooaFkAg8PZBYCZg8VAyQwNDRhNzk1MS0xNjliLTQxMzMtOThmNC0xZjFlNDA1NDNhZDQY54mp5paZ5bmz6KGh57uT5p6c5bGV56S6GOeJqeaWmeW5s+ihoee7k+aenOWxleekumQCEA9kFgJmDxUDJDAwYThhZWZmLTRjZjktNDM2Ny1hYzI2LWY0NmZkMTY2YTYwYQzokKXplIDnrqHnkIYS6JCl6ZSA566h55CG57O757ufZGTsk31NdeIDHMfiIsqKSVfo4Zcl8g==" />
<OBJECT id="DFEM" style="display:none;" codebase="DFEM.cab#version=310,0,0,0" classid="clsid:C0A7F568-135C-4A35-8C87-E4CF5DFC2CAC"></OBJECT>
<span class="PickerName" onclick="loadApp('6561ded3-f816-4437-b58f-b1353487328c')">
\*用户帮助文档下载*/
</span>
<br>
<span class="PickerDesc">
\*用户帮助文档下载*/
</span>
<hr>
<span class="PickerName" onclick="loadApp('95990611-0171-4c20-9591-6092225de833')">
操作管理
</span>
<br>
<span class="PickerDesc">
操作管理
</span>
<hr>
<span class="PickerName" onclick="loadApp('8bc0ff13-a37c-4a6d-b559-5e927fd6d8b5')">
操作卡管理
</span>
<br>
<span class="PickerDesc">
操作卡管理
</span>
<hr>
<span class="PickerName" onclick="loadApp('a04795a6-effb-4b3f-824e-9c4d875805e9')">
公用工程
</span>
<br>
<span class="PickerDesc">
公用工程
</span>
<hr>
<BR>
</form>
<script language="javascript">
function loadApp(appID)
{
document.DFEM.RaiseEvent("honeywell.pks.workcenter.desktop","LoadApp",appID);
}
</script>
</body>
</HTML>
我想用AU3自动点击‘操作卡管理’,代码如下:#include <IE.au3>
$oIE = _IECreate("http://10.105.1.86/desktop/desktop.aspx", 0, 1, 1, 1)
_IELoadWait($oIE)
Sleep(500)
$result = $oIE.document.parentWindow.eval("loadApp('8bc0ff13-a37c-4a6d-b559-5e927fd6d8b5')")
Exit
可是运行以后,竟然没有反应,不知错在哪?请高手指点一下,谢谢! |