Logu 0 Posted April 22, 2011 (edited) Hi Recently i started using AutoID, If any one works on SDL Tridion i needs your help, Below is my code its incomplete. #include <IE.au3> #include <String.au3> #include <WindowsConstants.au3> #include <Constants.au3> #Include <Excel.au3> ; Open the static page $oIE = _IECreate("http://epocms.www8.hp.com/") ;$oIE = _IEAttach("http://epocms.www8.hp.com/","url") _IELoadWait($oIE) $oFrame = _IEFrameGetObjByName ($oIE, "fNavTop") _IELoadWait($oFrame) WHILE ( @ERROR == $_IEStatus_NoMatch ) Sleep(1000) $oFrame = _IEFrameGetObjByName ($oIE, "fNavTop") _IELoadWait($oFrame) WEnd $oFrame = _IEFrameGetObjByName ($oFrame, "fNavTree") WHILE ( @ERROR == $_IEStatus_NoMatch ) Sleep(1000) $oFrame = _IEFrameGetObjByName ($oIE, "fNavTop") $oFrame = _IEFrameGetObjByName ($oFrame, "fNavTree") WEnd _IELoadWait($oFrame) $oDivTree = _IEGetObjById ($oFrame, "DivTreeView") WHILE ( @ERROR == $_IEStatus_NoMatch ) Sleep(1000) $oFrame = _IEFrameGetObjByName ($oIE, "fNavTop") $oFrame = _IEFrameGetObjByName ($oFrame, "fNavTree") $oDivTree = _IEGetObjById ($oFrame, "DivTreeView") WEnd _IELoadWait($oDivTree) $oTreeView = _IEGetObjById ($oDivTree, "TreeView") WHILE ( @ERROR == $_IEStatus_NoMatch ) Sleep(1000) $oFrame = _IEFrameGetObjByName ($oIE, "fNavTop") $oFrame = _IEFrameGetObjByName ($oFrame, "fNavTree") $oDivTree = _IEGetObjById ($oFrame, "DivTreeView") $oTreeView = _IEGetObjById ($oDivTree, "TreeView") WEnd _IELoadWait($oTreeView) $oFrame = _IEFrameGetCollection ($oTreeView,1) WHILE ( @ERROR == $_IEStatus_NoMatch ) Sleep(1000) $oFrame = _IEFrameGetObjByName ($oIE, "fNavTop") $oFrame = _IEFrameGetObjByName ($oFrame, "fNavTree") $oDivTree = _IEGetObjById ($oFrame, "DivTreeView") $oTreeView = _IEGetObjById ($oDivTree, "TreeView") $oFrame = _IEFrameGetCollection ($oTreeView,1) WEnd _IELoadWait($oFrame) $oDiv = _IEGetObjById ($oFrame, "sub_tcm:0-0-0") WHILE ( @ERROR == $_IEStatus_NoMatch ) Sleep(2000) $oFrame = _IEFrameGetObjByName ($oIE, "fNavTop") $oFrame = _IEFrameGetObjByName ($oFrame, "fNavTree") $oDivTree = _IEGetObjById ($oFrame, "DivTreeView") $oTreeView = _IEGetObjById ($oDivTree, "TreeView") $oFrame = _IEFrameGetCollection ($oTreeView,1) $sHTML = _IEDocReadHTML($oFrame) $oDiv = _IEGetObjById ($oFrame, "sub_tcm:0-0-0") WEnd _IELoadWait($oDiv) $oTable = _IEGetObjById ($oDiv, "node_tcm:0-244-1") WHILE ( @ERROR == $_IEStatus_NoMatch ) Sleep(2000) $oDiv = _IEGetObjById ($oFrame, "sub_tcm:0-0-0") $oTable = _IEGetObjById ($oDiv, "node_tcm:0-244-1") WEnd By the above code i reaches the particular place, After this i need help to localize the componunt and want edit fields like the name and call to action URL this componunts has unique name according to that it has to select open and want to edit fields Edited April 22, 2011 by Logu Share this post Link to post Share on other sites
wakillon 403 Posted April 22, 2011 It's AutoIt, not AutoID ! Please use AutoIt Tags for post your code... AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites