craigg Posted August 11, 2010 Posted August 11, 2010 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... 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? 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"
pritchardavid Posted August 11, 2010 Posted August 11, 2010 now that already looks better than youthwire
koryo Posted August 11, 2010 Posted August 11, 2010 Have your tried adding the URL that uses to a GPO for Trusted or Intranet site?
craigg Posted August 11, 2010 Author Posted August 11, 2010 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.
iScripter64 Posted September 20, 2010 Posted September 20, 2010 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.
craigg Posted September 20, 2010 Author Posted September 20, 2010 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
zbjsy Posted September 21, 2010 Posted September 21, 2010 the pop up that you display is that just a static page you created with links or something more fancy?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now