+ Post New Thread
Results 1 to 8 of 8
Scripts Thread, Logon Popup - VBS & HTML in Coding and Web Development; A while back I was asked to create an information popup that displayed various links when a member of staff ...
  1. #1
    craigg's Avatar
    Join Date
    Feb 2008
    Location
    Birmingham, UK
    Posts
    175
    Thank Post
    15
    Thanked 9 Times in 6 Posts
    Rep Power
    15

    Logon Popup - VBS & HTML

    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?


    popup.jpg

    Any help would be great!


    Thanks!

    Code:
    '=======================================
    ' 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"

  2. #2
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    26
    now that already looks better than youthwire

  3. #3

    Join Date
    May 2010
    Location
    England
    Posts
    108
    Thank Post
    20
    Thanked 18 Times in 15 Posts
    Rep Power
    13
    Have your tried adding the URL that uses to a GPO for Trusted or Intranet site?

  4. #4
    craigg's Avatar
    Join Date
    Feb 2008
    Location
    Birmingham, UK
    Posts
    175
    Thank Post
    15
    Thanked 9 Times in 6 Posts
    Rep Power
    15
    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.

  5. #5

    Join Date
    Jan 2010
    Posts
    64
    Thank Post
    7
    Thanked 5 Times in 5 Posts
    Rep Power
    10
    i like that

  6. #6
    iScripter64's Avatar
    Join Date
    Jun 2010
    Location
    Redcar
    Posts
    5
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Code:
    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.

  7. #7
    craigg's Avatar
    Join Date
    Feb 2008
    Location
    Birmingham, UK
    Posts
    175
    Thank Post
    15
    Thanked 9 Times in 6 Posts
    Rep Power
    15
    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

  8. #8

    Join Date
    Jan 2010
    Posts
    64
    Thank Post
    7
    Thanked 5 Times in 5 Posts
    Rep Power
    10
    the pop up that you display is that just a static page you created with links or something more fancy?

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 8
    Last Post: 19th April 2012, 04:29 PM
  2. vbs logon with ie
    By box_l in forum Scripts
    Replies: 5
    Last Post: 11th August 2010, 11:35 PM
  3. VBS Logon Scrip
    By brahma in forum Windows
    Replies: 14
    Last Post: 12th August 2008, 03:58 PM
  4. VBS System Tray popup
    By Samson in forum Scripts
    Replies: 7
    Last Post: 6th May 2008, 12:21 AM
  5. HP Printer software popup on logon
    By netadmin in forum Windows
    Replies: 3
    Last Post: 2nd September 2007, 12:34 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •