agertnas Posted December 14, 2007 Share Posted December 14, 2007 CODEWhile 1 ; Start While loop $msg = GUIGetMsg () Select Case $msg = -3 Exit Case $msg = $alogin ; Start Username and Password Login Case _ButtonFunc() IniDelete(@DesktopDir & "\fantasylogin.ini", "Username", "Key1") ; Delete Username and Password Section IniDelete(@DesktopDir & "\fantasylogin.ini", "Password", "Key2") IniWriteSection($sIni, "Username", "Key1=" & Guictrlread ($Username)) ; Write Username and Password Section IniWriteSection($sIni, "Password", "Key2=" & GUICtrlRead ($Password)) $oIE = _IECreate("www.nfl.com/fantasy") ; Go to site and log in. $oForm = _IEFormGetCollection($oIE, 0) $Username1 = _IEFormElementGetObjByName($oForm, "Account") $Password1 = _IEFormElementGetObjByName($oForm, "password") _IEFormElementSetValue($Username1, GUICtrlRead ($Username)) _IEFormElementSetValue($Password1, GUICtrlRead ($Password)) _IEFormSubmit($oForm) EndSelect Wend In the above code, how do I make it so when it logs in once, you can log in again after that if you want. Right now i'm having trouble with the whole script pausing because of hitting one button, none of the other buttons will work, and the script icon says "script paused". Any help would be appreciated, feel free to tell me what to look up in the help file. :-P Link to comment Share on other sites More sharing options...
agertnas Posted December 14, 2007 Author Share Posted December 14, 2007 (edited) Slight correction, it pauses when I close the internet explorer window. Edited December 14, 2007 by agertnas 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