home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / ObjName.au3 < prev    next >
Encoding:
Text File  |  2006-06-17  |  733 b   |  15 lines

  1. $oInternet = ObjCreate("InternetExplorer.Application")
  2. $oInternet.Navigate( "http://www.google.com" ) ; Opening a web page that contains a form
  3. sleep(4000)                    ; Give the page time to load
  4.  
  5. $oDoc = $oInternet.document    ; Example object to test
  6. $oForm = $oDoc.forms(0)        ; Example object to test
  7.  
  8. msgbox(0,"","Interface name of $oInternet is: " & ObjName($oInternet) & @CRLF & _
  9.             "Object name of $oInternet is:    " & ObjName($oInternet,2) & @CRLF & _
  10.             "Interface name of $oDoc is:      " & ObjName($oDoc) & @CRLF & _
  11.             "Object name of $oDoc is:         " & ObjName($oDoc,2) & @CRLF & _
  12.             "Interface name of $oForm is:     " & ObjName($oForm) & @CRLF & _
  13.             "Object name of $oForm is:        " & ObjName($oForm,2))
  14.  
  15.