Jump to content

Recommended Posts

Posted

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)

Posted

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.

:mellow:

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...