Remote Control for Internet Explorer

This one comes in handy for automating tasks with IE -- to be continued (Cookies, POSTing, GETting, if possible at all)...

  # IE Remote Control

  package require tcom

  set ie [tcom::ref createobject InternetExplorer.Application]

  proc ie {cmd args} {
      global ie
      switch $cmd {
          go {$ie Navigate [lindex $args 0]}
          where {$ie LocationURL}
          html {[[$ie Document] body] innerHTML}
          help {join [[::tcom::info interface $ie] methods] \n}

see also: IE automation with tcom