![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 > 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | Re: InternetExplorer.Application COM object. Quote: > I'm using Windows XP SP3. 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. 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 Specs![]() |
![]() |
| 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 | |||