davidd Posted May 26, 2007 Share Posted May 26, 2007 HI, How can I use autoIt within IEFRAME class items. For example I was tring to use autoIt to fill yahoo user&password form (http://www.mail.yahoo.com) Thanks in advanced. DavidD Link to comment Share on other sites More sharing options...
Kogmedia Posted May 26, 2007 Share Posted May 26, 2007 This would be a better option _IEFormGetCollection _IEFormGetObjByName [font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search Link to comment Share on other sites More sharing options...
davidd Posted May 26, 2007 Author Share Posted May 26, 2007 Thanks alot! :-) I finally did it. This is my script (you're welcome to use it): ---- #include <IE.au3> $oIE = _IECreate ("https://login.yahoo.com/config/login_verify2?&.src=ym") $oForm = _IEFormGetCollection ($oIE, 0) $oQuery = _IEFormElementGetCollection ($oForm, 1) send ("EMAIL_ACCOUT_USERNAME") send ("{TAB}") send ("EMAIL_ACCOUNT_PASSWORD") send ("{ENTER}") WinWaitActive("Security Alert", "&Yes") ControlClick ("Security Alert", "You are about to leave a secure Internet connection", 1) WinWaitActive("Yahoo! Mail Beta, EMAIL_ACOUNT_USERNAME - Microsoft Internet Explorer") ---- Thanks again, DavidD Link to comment Share on other sites More sharing options...
Kogmedia Posted May 26, 2007 Share Posted May 26, 2007 This is how you use the _IEForms #include <IE.au3> $USERNAME = 'username' $PASSWORD = 'password' $oIE = _IECreate ("https://login.yahoo.com/config/login_verify2?&.src=ym",0,1,1) $oForm = _IEFormGetCollection ($oIE, 0) $oLogin = _IEFormElementGetObjByName($oForm, "login") $oPass = _IEFormElementGetObjByName($oForm,"passwd") _IEFormElementGetObjByName($oLogin,"login") _IEFormElementGetObjByName($oPass,"passwd") _IEFormElementSetValue($oLogin,$USERNAME) _IEFormElementSetValue($oPass,$PASSWORD) _IEFormSubmit($oForm) [font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search Link to comment Share on other sites More sharing options...
davidd Posted May 27, 2007 Author Share Posted May 27, 2007 Thanks it's much better (& faster). Do you know how can I click on a specific text-link? Thanks for your help, DavidD Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted May 27, 2007 Moderators Share Posted May 27, 2007 Thanks it's much better (& faster).Do you know how can I click on a specific text-link?Thanks for your help,DavidD_IELinkClickByText() Link to comment Share on other sites More sharing options...
tonycst Posted June 24, 2015 Share Posted June 24, 2015 Can this be done without the _IECreate but rather already existing window ? Link to comment Share on other sites More sharing options...
Gianni Posted June 24, 2015 Share Posted June 24, 2015 Can this be done without the _IECreate but rather already existing window ?see _IEAttach function Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now