Logu Posted April 22, 2011 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
wakillon Posted April 22, 2011 Posted April 22, 2011 It's AutoIt, not AutoID ! Please use AutoIt Tags for post your code... AutoIt 3.3.18.0 X86 - SciTE 4.4.6.0 - WIN 11 24H2 X64 - Other Examples Scripts
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now