Advertisement
Guest User

Untitled

a guest
Oct 16th, 2017
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 4.87 KB | None | 0 0
  1. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  2. #AutoIt3Wrapper_UseX64=y
  3. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  4. #include <ImageSearch.au3>
  5. #include <GUIConstantsEx.au3>
  6. #include <MsgBoxConstants.au3>
  7.  
  8.  
  9. Global $fenster
  10. Global $active = 0
  11.  
  12. HotKeySet("s", "_start")
  13. HotKeySet("e", "_end")
  14. HotKeySet("p", "TogglePause")
  15. $x1 = 0
  16. $y1 = 0
  17. $x2 = 0
  18. $y2 = 0
  19. $Count = 0
  20. $Count2 = 0
  21. Global $Paused
  22. $firefox = 'FIFA18.exe'
  23.  
  24.  
  25. If ProcessExists($firefox) Then
  26.  
  27.  GUICreate("My GUI list") ; will create a dialog box that when displayed is centered
  28.  GUICtrlCreateLabel("Found",90,15)
  29.   GUICtrlCreateLabel("Buyed",300,110)
  30.  Local $idMylist = GUICtrlCreateList($Count, 76, 32, 121, 307)
  31.   Local $idMylist2 = GUICtrlCreateList($Count2, 276, 132, 221, 197)
  32.  GUICtrlSetLimit(-1, 1) ; to limit horizontal scrolling
  33.  
  34.   GUISetState(@SW_SHOW)
  35.  
  36.  
  37.     While True = True
  38.         Sleep(5)
  39.         If $active = 1 Then
  40.             WinActivate("[CLASS:FIFA 18]", "")
  41.         Sleep(10)
  42.             $result = _ImageSearchArea("noplayer.bmp", 1, 520, 433, 1400, 624, $x1, $y1, 6)
  43.             If $result = 1 Then
  44.               Send("{ENTER}")
  45.                 Sleep(245)
  46.                 MouseClick("left",270,771)
  47.                 Sleep(245)
  48.                 Send("{LEFT}")
  49.                 Send("{LEFT}")
  50.                 Send("{LEFT}")
  51.                 Send("{LEFT}")
  52.                 Sleep(150)
  53.                 Send("{ESC}")
  54.                 Sleep(100)
  55.                 Send("d")
  56.                 Sleep(150)
  57.  
  58.             ElseIf $result = 0 Then
  59.  
  60.  
  61.  
  62.  
  63.              $result2 = _ImageSearchArea("playerfound.bmp", 1, 512, 246, 1482, 955, $x2, $y2, 6)
  64.          If $result2 = 1 Then
  65.  
  66.         MouseClick("left",976,455,1,0)
  67.         Sleep(33)
  68.         MouseClick("left",1624,477,1,0)
  69.         Sleep(33)
  70.         MouseClick("left",1330,579,1,0)
  71.         Sleep(100)
  72.         Send("{Enter}")
  73.         Sleep(200)
  74.         $Count = $Count + 1
  75.          GUICtrlSetData($idMylist, $Count)
  76.          Sleep(50)
  77.          Elseif $result2 = 0 Then
  78.  
  79.  
  80.  
  81.  
  82.  
  83.              $result3 = _ImageSearchArea("abgelaufen.bmp", 1, 520, 333, 1400, 724, $x1, $y1, 6)
  84.         If $result3 = 1 Then
  85.         MouseClick("left",583,594)
  86.        Sleep(411)
  87.        Send("{ESC}")
  88.       Sleep(411)
  89.        Send("{ESC}")
  90.          Sleep(1150)
  91.                 MouseClick("left",270,771)
  92.                 Sleep(550)
  93.                 Send("{LEFT}")
  94.                 Send("{LEFT}")
  95.                 Send("{LEFT}")
  96.                 Send("{LEFT}")
  97.                 Sleep(250)
  98.                 Send("{ESC}")
  99.                 Sleep(250)
  100.                 Send("d")
  101.                 Sleep(500)
  102.         Elseif $result3 = 0 Then
  103.  
  104.  
  105.  
  106.  
  107.             ;#cs
  108.             $result4 = _ImageSearchArea("kauf.bmp", 1, 400, 400, 1600, 733, $x1, $y1, 6)
  109.             If $result4 = 1 Then
  110.             MouseClick("left",800,600)
  111.                 Sleep(450)
  112.                 Send("d")
  113.                 Sleep(800)
  114.                 Send("{ENTER}")
  115.                 Sleep("700")
  116.                 $Count2 = $Count2 + 1
  117.          GUICtrlSetData($idMylist2, $Count2,$Count2)
  118.  
  119.             Elseif $result4 = 0 Then
  120.  
  121.         $result5 = _ImageSearchArea("nohit.bmp", 1, 520, 433, 1400, 624, $x1, $y1, 6)
  122.             If $result5 = 1 Then
  123.             MouseClick("left",800,600)
  124.                 Sleep(1150)
  125.                 Send("d")
  126.                 Send("d")
  127.                 Send("d")
  128.                 Sleep(300)
  129.                 Send("d")
  130.                 Send("d")
  131.         ElseIf $result5 = 0 Then
  132. $result6 = _ImageSearchArea("playerfound.bmp", 1, 773, 617, 1145, 944, $x1, $y1, 6)
  133.             If $result6 = 1 Then
  134.                 Sleep(211)
  135.                 Send("d")
  136.         Sleep(211)
  137.  
  138.         ElseIf $result6 = 0 Then
  139. $result7 = _ImageSearchArea("restart.bmp", 1, 99, 617, 538, 944, $x1, $y1, 6)
  140.             If $result7 = 1 Then
  141.                 Sleep(150)
  142.                 Send("{ESC}")
  143.                 Sleep(100)
  144.                 Send("d")
  145.                 Sleep(100)
  146.  
  147.  
  148.             ElseIf $result7 = 0 Then
  149.             $result8 = _ImageSearchArea("kandidaten.bmp", 1, 585, 251, 813, 291, $x1, $y1, 6)
  150.              If $result8 = 1 Then
  151.             Sleep(150)
  152.                 Send("{ESC}")
  153.                 Sleep(100)
  154.                 Send("d")
  155.                 Sleep(200)
  156.  
  157.  
  158.             ElseIf $result8 = 0 Then
  159. $result9 = _ImageSearchArea("playerfound2.bmp", 1, 684, 306, 897, 362, $x1, $y1, 6)
  160.             If $result9 = 1 Then
  161.                 Sleep(211)
  162.                 Send("d")
  163.         Sleep(211)
  164.  
  165.             ElseIf $result9 = 0 Then
  166.         $result10 = _ImageSearchArea("suchen.bmp", 1, 425, 935, 556, 982, $x1, $y1, 6)
  167.             If $result10 = 1 Then
  168.                 Sleep(211)
  169.                 Send("d")
  170.         Sleep(211)
  171.             ElseIf $result10 = 0 Then
  172.          $result11 = _ImageSearchArea("playerfoundshiny.bmp", 1, 512, 246, 1482, 955, $x2, $y2, 6)
  173.          If $result11 = 1 Then
  174.  
  175.         MouseClick("left",976,455,1,0)
  176.         Sleep(33)
  177.         MouseClick("left",1624,477,1,0)
  178.         Sleep(33)
  179.         MouseClick("left",1330,579,1,0)
  180.         Sleep(100)
  181.         Send("{Enter}")
  182.         Sleep(200)
  183.         $Count = $Count + 1
  184.          GUICtrlSetData($idMylist, $Count)
  185.          Sleep(50)
  186.  If $result11 = 0 Then
  187. $result12 = _ImageSearchArea("toslow.bmp", 1, 822, 629, 1107, 703, $x1, $y1, 6)
  188.             If $result12 = 1 Then
  189.                 Sleep(211)
  190.                 Send("d")
  191.         Sleep(211)
  192.  
  193. EndIf
  194. EndIf
  195.             EndIf
  196.             EndIf
  197.         ;   #ce
  198.  
  199.         EndIf
  200.         EndIf
  201.         EndIf
  202. EndIf
  203.         Endif
  204.             Endif
  205.             EndIf
  206.         Endif
  207.         Endif
  208. EndIf
  209.     WEnd
  210.  
  211. Else
  212.     MsgBox(0, "Bot", "Firefox nicht gefunden!")
  213. EndIf
  214.  
  215. Func _start()
  216.     $active = 1
  217. EndFunc
  218.  
  219. Func TogglePause()
  220.     $Paused = NOT $Paused
  221.   While $Paused
  222.         sleep(100)
  223.     WEnd
  224.     ToolTip("")
  225. EndFunc
  226.  
  227. Func _end()
  228.     Exit
  229. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement