speedi Posted September 17, 2009 Share Posted September 17, 2009 I have developed this script to access a frequently used web application.. I have learned how to use we page forms to get the user name and password entered... I do not know how to go to the link on the page that opens... The script is below and the line where I need help follows the asterisk line... The attachment shows the debugbar data for this page... The link I want to go to is the 4th one. ; loigin script for DCSNET need ie "debugbar" to get this right #include <IE.au3> $oIE = _IECreate("https://www.dealerspeed.net/") _IELoadWait ($oIE) WinSetState("DealerSpeed", "", @SW_MAXIMIZE) WinWaitActive("DealerSpeed | Login - Windows Internet Explorer","") ; get pointers to the login form and username, password and signin fields $o_form = _IEFormGetObjByName ($oIE, "idForm") $o_login = _IEFormElementGetObjByName ($o_form, "username") $o_form = _IEFormGetObjByName ($oIE, "passwordForm") $o_password = _IEFormElementGetObjByName ($o_form, "password") $o_form = _IEFormGetObjByName ($oIE, "dealerForm") $o_signin = _IEFormElementGetObjByName ($o_form, "login") $username = "username" $password = "password" ; Set field values and submit the form _IEFormElementSetValue ($o_login, $username) _IEFormElementSetValue ($o_password, $password) _IEAction ($o_signin, "click") ;MsgBox(4096, "Test", "This box will time out in 3 seconds", 3) WinWait("https://www.dealerspeed.net/main/ - Windows Internet Explorer","") If Not WinActive("https://www.dealerspeed.net/main/ - Windows Internet Explorer","") Then WinActivate("https://www.dealerspeed.net/main/ - Windows Internet Explorer","") WinWaitActive("https://www.dealerspeed.net/main/ - Windows Internet Explorer","") ; ***************************************************** ; the line below is where I need help Run('C:\Program Files\Internet Explorer\IEXPLORE.EXE "https://www.dealerspeed.net/dcsnet/dcsnetwebapp/DCSnetPortal.do"', "", @SW_MAXIMIZE) EXIT Link to comment Share on other sites More sharing options...
speedi Posted September 17, 2009 Author Share Posted September 17, 2009 my file did not attach - trying again shows debugbar info 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