Jump to content

Recommended Posts

Posted

A while back I was asked to create an information popup that displayed various links when a member of staff logs on. All part of a new "comunication" revamp... :rolleyes:

 

The following script works great on XP but when a member of staff logs on to a windows 7 machines the popup will work but with no window formating UNLESS protected mode is turned off... Which then displays a warning about how it is unsafe not to have it enabled.

 

As you can imagine this is going to confuse staff so I was wondering if there was a way round it?

 

Do I have to add something into the Internet Explorer security settings via GPO?

 

 

popup.jpg

 

Any help would be great!

 

 

Thanks!

 

'=======================================
' Set IE as Object & Set HTML File
'=======================================

On Error Resume Next

Set objExplorer = CreateObject("InternetExplorer.Application") 
objExplorer.Navigate("http://portal/Logon/popup.html") 

'=======================================
' IE Window Properties Section:
'=======================================

objExplorer.AddressBar = 0 
objExplorer.Toolbar = 0
objExplorer.StatusBar = 0 
objExplorer.resizable = 0
objExplorer.Width = 265
objExplorer.Height = 375

'=======================================
' Script Waits for IE to Load
'=======================================

Do Until (objExplorer.readyState = 4)
wscript.sleep 100
Loop 

'=======================================
' Centers IE Window
'=======================================

With objExplorer.Document.ParentWindow.Screen
       objExplorer.Left = (.AvailWidth  - objExplorer.Width ) \ 2
       objExplorer.Top  = (.Availheight - objExplorer.Height) \ 2

End With

'=======================================
' Set Window As Visible & Remove Scroll
'=======================================

objExplorer.Visible = 1 
objExplorer.Document.body.Scroll = "no" 

Posted

Im sure I have tried something along the lines before but i'll give it a go and post back my results.

 

Thanks for the suggestion.

 

@p-dave - feel free to harvest the code if you want. :D

  • 1 month later...
Posted

Set objExplorer = CreateObject("InternetExplorer.Application") 
objExplorer.Navigate("http://portal/Logon/popup.html") 

 

Theres your problem. :/ i think you might have to look about mate keep asking... i honestly have got no idea why because i havent looked into this new windows 7 security yet and whats blocked and stuff along those lines, however i guess thats your problem :)

 

Im probs wrong lol but i guess its worth alook ;o)

 

Kind Regards,

Nick.

Posted

Yeahh something weird is happening. I'm sure there is a better way of doing it aswell... The only way i have it to work flawlessly on 7 is by adding the staff group to the builtin power users group... but thats not ideal.

 

I was looking into designing a propper desktop widget that just pulls RSS from a local site.

 

We shall see!

 

Thanks for your reply

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...