AutoKey to Save Outlook Password
I'm using Vista with Outlook 2007 which keep asking for a password. Someone suggested AHK script below with modified userids and passwords. I have two mail accounts in case you're wondering about the repetition. It compiles, but Outlook still asks for bloody passwords. I've wasted a lot of time trying to fix this and I am on the verge of making the leap to Thunderbird.
Any help would be much appreciated.
IfWinExist, Inbox - Microsoft Outlook,
{
WinActivate, Inbox - Microsoft Outlook,
ExitApp
}
Run OUTLOOK.EXE
Sleep, 10000
IfWinNotActive, Enter Network Password, , WinActivate, Enter Network Password,
WinWaitActive, Enter Network Password,
Gosub, SendPasword
IfWinNotActive, Enter Network Password, , WinActivate, Enter Network Password,
WinWaitActive, Enter Network Password,
Gosub, SendPasword
WinWait, Inbox - Microsoft Outlook,
IfWinNotActive, Inbox - Microsoft Outlook, , WinActivate, Inbox - Microsoft Outlook,
WinWaitActive, Inbox - Microsoft Outlook,
Send, {F9}
ExitApp
SendPasword:
ControlGetText, UserName, RichEdit20A1
If UserName = scstdenis
Send, xxxxxx{ENTER}
If UserName = sstdenis
Send, xxxxxx{ENTER}
sleep, 1000
Return