看板 Programming 關於我們 聯絡資訊
這是兩個系統,我希望將PLM上面表單資料抓下來,再倒入lab系統裡。 使用_IEFormElementGetObjByName 我可以找到我field的位置,如果純粹輸入'字串' _IEFormElementSetValue($oUsername, '123456' ) 這樣是可以input值進去。 但我直接用變數 _IEFormElementSetValue($oUsername, $PLMNO ) 就不work了 ,出來的值都是0。 目前試過 _IEgetPoperty、_IEGetObjByName 另外 我想使用 .innerText 、 .type 、 .value 怎麼compiler都說undeclare。 底下是我寫的script。 先謝謝了。 #include <IE.au3> Local $PLMIE = _IECreate("http://dlkplmap.dlink.com.tw/Agile/PLMServlet?",1) Local $PLMForm = _IEFormGetCollection($PLMIE,0) Local $LabIE = _IECreate("http://lab.dlink.com.tw/dlb_TestreportForm.asp?sno=",1) Local $LabForm = _IEFormGetCollection($LabIE,0) Local $oUsername = _IEFormElementGetObjByName($LabForm, 'FlowNo') Local $PLMNO = _IEFormElementGetObjByName($PLMForm, "objectname") _IEFormElementSetValue($oUsername, $PLMNO ) MsgBox(0, "ExampleForm", $Text) & @CRLF) -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.135.145.234 ※ 文章網址: https://www.ptt.cc/bbs/Programming/M.1438753833.A.7BE.html
Ssuio: 已解決! 原來要+frame的選取220.135.145.234 08/07 15:50