+ Post New Thread
Results 1 to 3 of 3
Internet Related/Filtering/Firewall Thread, Preloading MS Web Email Address in Technical; Is there anyway of creating a shortcut to pre-populate this login form so I can just set up a series ...
  1. #1

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,829
    Thank Post
    1,476
    Thanked 594 Times in 446 Posts
    Rep Power
    169

    Preloading MS Web Email Address

    Is there anyway of creating a shortcut to pre-populate this login form so I can just set up a series of shortcuts in a shared folder for year 3 pupils to simply enter a password with having to type in pupil3@someschool.lancs.sch.uk every time?

    regards

    Simon

  2. #2

    Join Date
    Apr 2007
    Location
    Birmingham
    Posts
    143
    Thank Post
    6
    Thanked 45 Times in 39 Posts
    Rep Power
    23
    Some kind of autohotkey script?

    Code:
    #NoTrayIcon
    #Persistent
    
    SiteUrl = https://outlook.lancsngfl.ac.uk/owa/auth/logon.aspx?url=https://outlook.lancsngfl.ac.uk/owa/&reason=3
    Email = pupil3@someschool.lancs.sch.uk
    Ie = c:\Program Files\Internet Explorer\iexplore.exe
    IeTitle = Microsoft Exchange - Outlook Web Access - Windows Internet Explorer
    
    BlockInput, On
    Run,  %Ie% %SiteUrl%
    WinWaitActive, %IeTitle%,,30
    if ErrorLevel
    {
    	BlockInput, Off
        MsgBox, WinWait timed out.
    	Goto, Exit
    }
    else
    
    Sleep 100
    SendInput %Email% {Tab}
    BlockInput, Off
    
    Exit:
    ExitApp
    I think there are fancy ways to detect if the page has loaded, but this seemed to work ok.

  3. Thanks to andy_b from:

    SimpleSi (21st April 2011)

  4. #3


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,404
    Thank Post
    242
    Thanked 2,824 Times in 2,083 Posts
    Rep Power
    814
    Similar to the script above, but in AutoIt and PowerShell respectively (and a little fancier ).

    Pupil3.au3
    Code:
    #include <IE.au3>
    $oIE = _IECreate ("https://outlook.lancsngfl.ac.uk/owa/", 0, 1, 1, 1)
    
    $oForm = _IEFormGetObjByName($oIE, "logonForm")
    $oUsername = _IEFormElementGetObjByName($oForm, "username")
    $oPassword = _IEFormElementGetObjByName($oForm, "password")
    
    _IEFormElementSetValue($oUsername, "pupil3@someschool.lancs.sch.uk")
    _IEAction ($oPassword, "focus")

    Pupil3.ps1
    Code:
    $username = "pupil3@someschool.lancs.sch.uk"
    
    $ie = New-Object -com "InternetExplorer.Application"
    $ie.navigate("https://outlook.lancsngfl.ac.uk/owa/")
    $ie.visible = $true
    
    while ($ie.Busy -eq $true)
    {
    	Start-Sleep -Milliseconds 500;
    }
    
    $ie.Document.getElementById("username").value = $username;
    $ie.Document.getElementById("password").select()

  5. Thanks to Arthur from:

    SimpleSi (21st April 2011)

SHARE:
+ Post New Thread

Similar Threads

  1. Hide Email Address from the 'To' in a sent email
    By thesk8rjesus in forum Network and Classroom Management
    Replies: 11
    Last Post: 16th September 2008, 12:32 PM
  2. Send email to one address only
    By rhyds in forum Windows
    Replies: 8
    Last Post: 3rd March 2008, 01:56 PM
  3. New Email Address
    By Geoff in forum General Chat
    Replies: 0
    Last Post: 5th July 2007, 08:04 AM

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
  •