Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. #RequireAdmin
  2. #include <GUIConstantsEx.au3>
  3. #include <WindowsConstants.au3>
  4. #include <IE.au3>
  5. #include <File.au3>
  6. #include <Inet.au3>
  7. #include<WinApi.au3>
  8. #Include <WinAPIEx.au3>
  9. #include <EditConstants.au3>
  10. #include <GUIConstantsEx.au3>
  11.  
  12. $browser2 = _IECreateEmbedded()
  13.  
  14. #Region ### START Koda GUI section ### Form=
  15. $Form1 = GUICreate("DarkSpirit", 655, 437, 780, 430)
  16. $fUsername = GUICtrlCreateInput("", 272, 16, 121, 21)
  17. $fPassword = GUICtrlCreateInput("", 272, 48, 121, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD))
  18. $Button1 = GUICtrlCreateButton("Login", 400, 16, 83, 49)
  19. $Obj1 = GUICtrlCreateObj($Browser2, 0, 104, 649, 329)
  20. $Label1 = GUICtrlCreateLabel("Login Elitepvpers:", 160, 18, 88, 17)
  21. $Label2 = GUICtrlCreateLabel("Password Elitepvpers:", 160, 50, 108, 17)
  22. $Button2 = GUICtrlCreateButton("Start", 400, 72, 83, 25)
  23. GUISetState(@SW_SHOW)
  24. _IENavigate($Browser2, "http://www.elitepvpers.com/")
  25. _IENavigate($Browser2, "http://www.elitepvpers.com/forum/s4-league-hacks-bots-cheats-exploits/3971640-release-darkspirit-weapondrop.html")
  26.  
  27. #EndRegion ### END Koda GUI section ###
  28.  
  29. While 1
  30. $nMsg = GUIGetMsg()
  31. Switch $nMsg
  32. Case $GUI_EVENT_CLOSE
  33. Exit
  34. case $Button1
  35. _Login(GUICtrlRead($fUsername), GUICtrlRead($fPassword))
  36. _IENavigate($Browser2, "http://www.elitepvpers.com/forum/s4-league-hacks-bots-cheats-exploits/3971640-release-darkspirit-weapondrop.html")
  37. Case $Button2
  38. $oForm1 = _IEFormGetCollection($Browser2, 0)
  39. $oLink = _IEGetObjById($oForm1, "post_thanks_button_33756956")
  40. _IEAction($oLink, "click")
  41. $oForm1.document.getElementById("post_thanks_button_33756956").click();
  42. $sSource = _INetGetSource("http://www.elitepvpers.com/forum/s4-league-hacks-bots-cheats-exploits/3971640-release-darkspirit-weapondrop.html")
  43.  
  44. If StringInStr($sSource,'"return post_thanks_give(33756956, false);" style="') Then
  45. GUISetState(@SW_hide,$Form1)
  46. msgBox(0,"Info","Ty :3")
  47. ToolTip("S4 League Wait...", 0, 0)
  48. _start()
  49.  
  50. Else
  51. MsgBox(0,"Info","Please give thanks to me")
  52. EndIf
  53.  
  54.  
  55. EndSwitch
  56. WEnd
  57.  
  58. Func _start()
  59. ProcessWait("s4client.exe")
  60.  
  61. EndFunc
  62.  
  63. Func _Login($user, $pass)
  64. $oForm = _IEFormGetCollection($Browser2, 0)
  65. $oUsername = _IEFormElementGetObjByName($oForm, "vb_login_username")
  66. $oPassword = _IEFormElementGetObjByName($oForm, "vb_login_password")
  67. _IEFormElementSetValue($oUsername, $user)
  68. _IEFormElementSetValue($oPassword, $pass)
  69. _IEFormSubmit($oForm, 0)
  70. _IEFormSubmit($oForm, 0)
  71. _IELoadWait($oForm)
  72. Sleep(500)
  73. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement