|
I'm on an exchange server, and it requires that I enter my password everytime I log into the computer
the problem comes in when sometimes I am at home, and sometimes I am in school.
If i am at home, I enter outlook, there will be a password prompt, which i cannot set to "remember password".
If i am in school, outlook will automatically log me in without prompting me for the password.
As such, i want to write a script to automate this process.
the current one i have is :
Run, C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE
WinWait, Connect to EX21.student.smu.edu.sg,
IfWinNotActive, Connect to EX21.student.smu.edu.sg, , WinActivate, Connect to EX21.student.smu.edu.sg,
WinWaitActive, Connect to EX21.student.smu.edu.sg,
Send**mypassword**{ENTER}
WinWait, Inbox - Microsoft Outlook,
IfWinNotActive, Inbox - Microsoft Outlook, , WinActivate, Inbox - Microsoft Outlook,
WinWaitActive, Inbox - Microsoft Outlook,
Send, {ALTDOWN}{ALTUP}{SPACE}n
but the problem is, this script will not work when i am in school
i need a script that says
if there is a popup asking me for my password, i will enter my pasword.and minimize outlook.
otherwise proceed to minimize outlook directly
|
|