matlab與ie交互

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);
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章