jimmyjmmy Posted November 6, 2008 Posted November 6, 2008 Hi, With regards to the script below, after submitting the form, the scripts did not echo the msgbox. Why is that so? Thanks #include <IE.au3> Dim $oIE = _IECreate ("https://login.yahoo.com/config/login_verify2?.src=www&.intl=sg&.done=http://sg.yahoo.com/") WinWaitActive("Sign in to Yahoo! - Windows Internet Explorer","Sign in to Yahoo") WinSetState ( "Sign in to Yahoo! - Windows Internet Explorer", "Sign in to Yahoo", @SW_MAXIMIZE ) $yahoo_id_form = _IEGetObjByName ($oIE,"username") _IEFormElementSetValue($yahoo_id_form,"your yahoo id") $yahoo_password_form = _IEGetObjByName ($oIE,"passwd") _IEFormElementSetValue($yahoo_password_form,"your password") $oForm = _IEFormGetObjByName ($oIE, "login_form") _IEFormSubmit ($oForm) MsgBox(0,"","forms submitted") _IEQuit ($oIE)
PsaltyDS Posted November 6, 2008 Posted November 6, 2008 Hi,With regards to the script below, after submitting the form, the scripts did not echo the msgbox. Why is that so?Thanks#include <IE.au3>Dim $oIE = _IECreate ("https://login.yahoo.com/config/login_verify2?.src=www&.intl=sg&.done=http://sg.yahoo.com/")WinWaitActive("Sign in to Yahoo! - Windows Internet Explorer","Sign in to Yahoo")WinSetState ( "Sign in to Yahoo! - Windows Internet Explorer", "Sign in to Yahoo", @SW_MAXIMIZE ) $yahoo_id_form = _IEGetObjByName ($oIE,"username")_IEFormElementSetValue($yahoo_id_form,"your yahoo id") $yahoo_password_form = _IEGetObjByName ($oIE,"passwd")_IEFormElementSetValue($yahoo_password_form,"your password") $oForm = _IEFormGetObjByName ($oIE, "login_form")_IEFormSubmit ($oForm) MsgBox(0,"","forms submitted")_IEQuit ($oIE)Read the remarks and look at example 3 under _IEFormSubmit() in the help file. You need to use $f_wait = 0 if you don't want to wait for it to complete, and if it pops a dialog box or some infiloop javascript, it may never complete. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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