Jump to content

How do I get script to not pause?


agertnas
 Share

Recommended Posts

CODE
While 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...