Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Re: InternetExplorer.Application COM object.

Reply
 
Old 05-26-2008   #1 (permalink)
Jon


 
 

Re: InternetExplorer.Application COM object.


"Shay Levi" <no@xxxxxx> wrote in message
news:89228ed22d0608ca8d3c28f63afd@xxxxxx
Quote:

>
Quote:

>> There's no innerHtml property for $oIE.document
>
>
That was a typo on my part. Should have read that there's no 'body' property
for $oIE.document, and subsequently no $oIE.document.body.innerHtml. My
mistake.

I believe my settings are near to default for Internet Explorer, but the
same sequence errors out here, in exactly the same manner described by
Braden.

So that's odd then.There must be some other setting at work eg having UAC
turned on or off. I have it turned on here.

Exactly the same sequence (and even a similar prompt format !) .....

#----------------------------
PS (1) > $oIE = new-object -com internetExplorer.Application
PS (2) > $oIE.visible=$true
PS (3) > $oIE.navigate2("about:blank")
PS (4) > $oIE.statusbar=$true
PS (5) > $oIE.addressbar=$false
PS (6) > $oIE.menubar=$false
PS (7) > $oIE.toolbar=$false
PS (8) > $oIE.document.body | gm inn*
Get-Member : No object has been specified to get-member.
At line:1 char:24
+ $oIE.document.body | gm <<<< inn*
PS (9) > $oIE.document | gm b* #No body element


TypeName: System.__ComObject#{3050f55f-98b5-11cf-bb82-00aa00bdce0b}

Name MemberType Definition
---- ---------- ----------
baseUrl Property string baseUrl () {get} {set}
bgColor Property Variant bgColor () {get} {set}


PS (10) > #Whereas ...
PS (11) > $oIE.document.documentelement.lastchild | gm inn*


TypeName: System.__ComObject#{3050f507-98b5-11cf-bb82-00aa00bdce0b}

Name MemberType Definition
---- ---------- ----------
innerHTML Property string innerHTML () {get} {set}
innerText Property string innerText () {get} {set}


PS (12) >

#------------------------------------------------------







--
Jon



My System SpecsSystem Spec
Old 05-26-2008   #2 (permalink)
Braden C. Roberson-Mailloux


 
 

Re: InternetExplorer.Application COM object.

I'm using Windows XP SP3. UAC need not apply.
"Jon" <Email_Address@xxxxxx> wrote in message
news:%23eCQlTxvIHA.4912@xxxxxx
Quote:

>
> "Shay Levi" <no@xxxxxx> wrote in message
> news:89228ed22d0608ca8d3c28f63afd@xxxxxx
Quote:

>>
Quote:

>>> There's no innerHtml property for $oIE.document
>>
>>
>
> That was a typo on my part. Should have read that there's no 'body'
> property for $oIE.document, and subsequently no
> $oIE.document.body.innerHtml. My mistake.
>
> I believe my settings are near to default for Internet Explorer, but the
> same sequence errors out here, in exactly the same manner described by
> Braden.
>
> So that's odd then.There must be some other setting at work eg having UAC
> turned on or off. I have it turned on here.
>
> Exactly the same sequence (and even a similar prompt format !) .....
>
> #----------------------------
> PS (1) > $oIE = new-object -com internetExplorer.Application
> PS (2) > $oIE.visible=$true
> PS (3) > $oIE.navigate2("about:blank")
> PS (4) > $oIE.statusbar=$true
> PS (5) > $oIE.addressbar=$false
> PS (6) > $oIE.menubar=$false
> PS (7) > $oIE.toolbar=$false
> PS (8) > $oIE.document.body | gm inn*
> Get-Member : No object has been specified to get-member.
> At line:1 char:24
> + $oIE.document.body | gm <<<< inn*
> PS (9) > $oIE.document | gm b* #No body element
>
>
> TypeName: System.__ComObject#{3050f55f-98b5-11cf-bb82-00aa00bdce0b}
>
> Name MemberType Definition
> ---- ---------- ----------
> baseUrl Property string baseUrl () {get} {set}
> bgColor Property Variant bgColor () {get} {set}
>
>
> PS (10) > #Whereas ...
> PS (11) > $oIE.document.documentelement.lastchild | gm inn*
>
>
> TypeName: System.__ComObject#{3050f507-98b5-11cf-bb82-00aa00bdce0b}
>
> Name MemberType Definition
> ---- ---------- ----------
> innerHTML Property string innerHTML () {get} {set}
> innerText Property string innerText () {get} {set}
>
>
> PS (12) >
>
> #------------------------------------------------------
>
>
>
>
>
>
>
> --
> Jon
>
>

My System SpecsSystem Spec
Old 05-26-2008   #3 (permalink)
Flowering Weeds


 
 

Re: InternetExplorer.Application COM object.

Quote:

> I'm using Windows XP SP3.
Mmm perhaps PowerShell should have
by now stated whether it supports Windows
XP SP3 (and whether one has to unload
any versions of PowerShell installed
in XP SP2 before installing XP SP3)!

Anyway one can not do much about
SP3 issues until one loads SP3 but
concerning XP SP3 and PowerShell
did one unload PowerShell version 1
or CTP2 before installing Windows
XP SP3?

Can one unload CTP2 loaded in
XP SP2 after loading XP SP3?

Can one unload PowerShell version1
loaded in XP SP2 after loading XP SP3?
Quote:

> UAC need not apply.
FYI

PC World - Business Center: Vista's Despised UAC
Nails Rootkits, Tests Find
http://www.pcworld.com/businesscente...ests_find.html

Good luck on finding out what XP SP3
changes "for scripting" until others get
on SP3 but perhaps someone who likes
loading and unloading SPs and different
PowerShell versions will reply!


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
InternetExplorer Com Object Find Utility PowerShell
Give focus to an InternetExplorer.Application object VB Script
InternetExplorer.Application COM object. PowerShell
REQ: internetexplorer com object and access to array of links PowerShell
new-object -com internetexplorer.application PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46