HY
#include <IE.au3>
;~ 打开网址
;$oIE = _IECreate("www.hbm.com/hbmshop-de")
$oIE = _IECreate("https://www.hypneu.de/shop/customer/account/login/")
$oForms = _IEFormGetCollection ($oIE)
;~ 获取表单名
$oForm = _IEFormGetObjByName($oIE, "stdFormTable")
;~ 获取name属性为user的对象
$uname = _IEGetObjByName ($oIE, "login[username]")
;~ 获取name属性为password的对象
$upwd = _IEGetObjByName ($oIE, "login[password]")
;~ 设置相应的值
_IEFormElementSetValue($uname, "loginid")
_IEFormElementSetValue($upwd, "pass")
Sleep(1000)
Local $oSubmit = _IEGetObjByName($oIE, "send")
_IEAction($oSubmit, "click")
;_IEFormSubmit($oForm,0)
</pre><pre code_snippet_id="1784050" snippet_file_name="blog_20160726_3_3285462" name="code" class="sql">
HBM
#include <IE.au3>
;~ 打开网址
;$oIE = _IECreate("www.hbm.com/hbmshop-de")
$oIE = _IECreate("https://www.staubli-kundenportal.de/Login.htm")
;~ 获取表单名
$oForm = _IEFormGetObjByName($oIE, "login_form")
;~ 获取name属性为user的对象
$uname = _IEFormElementGetObjByName($oForm, "cugUsername")
;~ 获取name属性为password的对象
$upwd = _IEFormElementGetObjByName($oForm, "cugPassword")
;~ 设置相应的值
_IEFormElementSetValue($uname, "UNAME")
_IEFormElementSetValue($upwd, "UPWD")
;~ 获取name属性为enter.x的对象
$oQuery = _IEFormElementGetObjByName($oForm, "Anmelden")
;~ 对该对象模拟单击
_IEAction($oQuery, "click")
SIEMENS
#include <IE.au3>
;~ 打开网址
$oIE = _IECreate("https://eb.automation.siemens.com/registration/Login.aspx")
;~ 获取表单名
$oForm = _IEFormGetObjByName($oIE, "ctl01")
;~ 获取name属性为user的对象
$uname = _IEFormElementGetObjByName($oForm, "txtLogin")
;~ 获取name属性为password的对象
$upwd = _IEFormElementGetObjByName($oForm, "txtPassword")
;~ 设置相应的值
_IEFormElementSetValue($uname, "2122")
_IEFormElementSetValue($upwd, "333333")
;~ 获取name属性为enter.x的对象
$oQuery = _IEFormElementGetObjByName($oForm, "SLS_btnLoginLocalized")
;~ 对该对象模拟单击
_IEAction($oQuery, "click")