clc
clear
ie=actxserver('internetexplorer.application');
ie.Navigate('網址');
while ~strcmp(ie.readystate,'READYSTATE_COMPLETE')
pause(.01)
end
loginname=ie.document.getElementById('輸入用戶名的LABEL的id');
loginname.value='用戶名';
password=ie.document.getElementById('輸入密碼的LABEL的id');
password.value='密碼';
submit=ie.document.getElementById('登錄按鈕的id');
submit.click;
delete(ie);
%小改一下,
ie=actxserver('internetexplorer.application');
ie.Navigate('mailto:[email protected]');
delete(ie);