dushkin Posted August 9, 2010 Posted August 9, 2010 Hi guys, I attach to the post a part of an html file I need to work on. I need to reach the lowest html node you see there, inside all the frames. Can you advice me the way? Please notice that not every frame\frameset has a name or an id to assist us to fetch it. Many Thanks!
PsaltyDS Posted August 9, 2010 Posted August 9, 2010 Where they have names you just use _IEFrameGetObjByName(), and where they don't use _IEFrameGetCollection() and the 0-based index (i.e. 0 = first, 1 = second). So in the example you posted: $oFramSet1 = _IEFrameGetObjByName($oIE, "UserFrames") ; by name $oFrameSet2 = _IEFrameGetCollection($oFrameSet1, 1) ; 1 = 2nd index $oFrame = _IEFrameGetObjByName($oFrameSet2, "UserMain") ; by name $oForm with _IEFormGetObjByName($oFrame, "frmReport") ; by name Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
dushkin Posted August 10, 2010 Author Posted August 10, 2010 (edited) Where they have names you just use _IEFrameGetObjByName(), and where they don't use _IEFrameGetCollection() and the 0-based index (i.e. 0 = first, 1 = second). So in the example you posted: $oFramSet1 = _IEFrameGetObjByName($oIE, "UserFrames") ; by name $oFrameSet2 = _IEFrameGetCollection($oFrameSet1, 1) ; $oFrame = _IEFrameGetObjByName($oFrameSet2, "UserMain") ; by name $oForm with _IEFormGetObjByName($oFrame, "frmReport") ; by name Thanks PsaltyDS! Found it!!! Mainly by trial and error... $oFrameSet1 = _IEGetObjByName($oIE, "UserFrames") ; by name $oFrameSet2 = _IEFrameGetCollection($oFrameSet1, 1) ; Don't know why but that was redundant... $oFrame = _IEFrameGetObjByName($oFrameSet1, "UserMain") ; by name $oForm = _IEFormGetObjByName($oFrame, "frmReport") ; by name Many thanks! Edited August 10, 2010 by dushkin
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