Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #include <IE.au3>
  2.  
  3. Call ("signIn")
  4.  
  5.  
  6. Func signIn()
  7. Local $pass = 0
  8.  
  9. while $pass < 5
  10. $oIE= _IECreate ("http://pb-fa.nl/walkthrough/escapetheschool.php/?level=login")
  11. Sleep(500)
  12. Local $username = _IEGetObjByName ($oIE,"name")
  13. Local $password = _IEGetObjByName ($oIE,"pass")
  14. Local $button = _IEGetObjByName ($oIE,"submit")
  15.  
  16. _IEFormElementSetValue ($username,"test")
  17. _IEFormElementSetValue ($password,$pass)
  18. Sleep(1000)
  19. _IEAction ($button,"click")
  20.  
  21. Sleep(2000)
  22. $test = _IEPropertyGet($oIE,"locationurl")
  23. if $test == "http://www.pb-fa.nl/walkthrough/escapetheschool.php/?level=account" Then
  24. Break ; Doesn't spot this part of the if statement
  25. Else
  26. $pass = $pass+1
  27.  
  28. _IEQuit ($oIE) ;internet explorer doesn't close
  29. EndIf
  30. wend
  31. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement