This?
Code:
F1::
winName = https://support.centurytel.net/supporttools/index.cfm
IfWinNotExist, %winName%
{
Run, iexplore.exe %winName%, , UseErrorLevel
If ErrorLevel
{
MsgBox, 16, Error!, Can not start window. Script paused.
Pause
}
WinWait, %winName%, , 5
If ErrorLevel
{
MsgBox, 16, Error!, Can not find window. Script paused.
Pause
}
}
WinActivate, %winName%
JS =
(LTrim Join
javascript:
void(document.theform.login_username.value='name');
void(document.theform.login_password.value='password');
void(document.theform.submit());
)
MsgBox % JS
ControlSetText, Edit1, %JS%
ControlSend, Edit1, {Enter}
Return