decypher Posted November 17, 2011 Share Posted November 17, 2011 Hello! can someone please look at this dll http://www.zjucadcg.cn/dengcai/VIPS/VIPS.html and say if it can be integrated with autoit? What I found from the examples it consists of: ILayoutAnalyzer2::Analyze4 ILayoutAnalyzer2::AnalyzeImg ILayoutAnalyzer2::AnalyzeNews ILayoutAnalyzer2::AnalyzeOutputAll_Text ILayoutAnalyzer2::FOMPage ILayoutAnalyzer2::getResult ILayoutAnalyzer2::Initialize functions. I should to register it in the system with regsvr32 pageanalyzer.dll before using. Then the sequence of calling should be Initialize -> Analyze4 where I should pass MFC Browser array. I found this from the source code placed on the site. m_pLayoutAnalyzer->Initialize(0); //Get the document MSHTML::IHTMLDocument2Ptr pHTMLDoc = m_webBrowser.GetDocument(); m_iPDOC = 5; m_pLayoutAnalyzer->Analyze4(pHTMLDoc,_variant_t((long)m_iPDOC)); MSXML2::IXMLDOMDocumentPtr pFOMPage = m_pLayoutAnalyzer->GetFOMPage(); pFOMPage->save("VIPSResult.xml"); The result should be saved to xml file. The Initialize function call passed ok, but I stumb against MFC Browser document. What is _variant_t((long)m_iPDOC)? How do I get MSHTML::IHTMLDocument2Ptr pHTMLDoc from autoit? Can someone say something about this library? Thank you! Link to comment Share on other sites More sharing options...
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