WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE with MSIE
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

!! Getting started with MSIE !!!

 Keywords:  MSIE MSHTML DHTML HTML Internet Explorer Web Page

One of the best ways I found to learn about coding/automating MSIE and the MSHTML is to get to know those two object models.

Internet Explorer Object Model:

http://msdn.microsoft.com/en-us/library/ms970457.aspx

MSHTML

http://msdn.microsoft.com/en-us/library/aa741317(VS.85).aspx If you have Excel or MS Office (anything with a VBA Editor), you should familarize yourself with the Object Browser: http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/OLE~COM~ADO~CDO~ADSI~LDAP+!!~A~List~of~Links~to~various~OLE~docs~!!.txt#ObjectBrowser If you don't have access to the VBA Editor, then Winbatch supplies a similar item called the WIL Type Viewer: C:\Program Files\WinBatch\System\WIL Type Viewer.exe (your path may differ if you install to a different folder).

Part of the learning curve is learning how to read & understand the logic to the Object Models. It's not always 1-2-3 and there are some curves...so get ready...but the more you use it, the more you'll be able to do with it. It's not for the faint of heart.

Next best trick to learning how to code in MSIE or MSHTML was that I would periodically download a page using the "Web Page Complete" from the SAVEAS menu item on MSIE (Firefox has a similar one). This not only downloads the HTML but all the .js files and images, etc. The .js files often provide a wealth of information on accessing objects on the page, since they often deal with that particular page.

Looking at the Object Model in the VBA Editor or the WIL TYPE VIEWER is one thing, but being able to get a glimpse of sample code (and sometimes there isn't any around) for a particular Method or Property is incredibly helpful. So I fire up Winbatch Studio, use it's FIND IN FILES option and then point it at all the .js files I have and see what it brings back. It can be a little tricky translating from say JScript to Winbatch, but is better than nothing. It also taught me JScript!

As I mentioned, you're jumping into the deep end but the good news is there are many Winbatch coders on our Forum with experience. http://forum.winbatch.com


Article ID:   W18123
Filename:   !! Getting started with MSIE !!!.txt
File Created: 2014:07:18:09:51:38
Last Updated: 2014:07:18:09:51:38