Advertisement
Guest User

daxuaaaaa

a guest
Jun 25th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.43 KB | None | 0 0
  1. #RequireAdmin
  2. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  3. #AutoIt3Wrapper_Icon=E:\Duc\Downloads\super_daxua.ico
  4. #AutoIt3Wrapper_Outfile=Auto_pick_1.0.exe
  5. #AutoIt3Wrapper_Res_Description=Con cặc
  6. #AutoIt3Wrapper_Res_Fileversion=1.0.0.0
  7. #AutoIt3Wrapper_Res_Language=1066
  8. #AutoIt3Wrapper_Res_Field=ProductName|Tool pick tranh tướng
  9. #AutoIt3Wrapper_AU3Check_Stop_OnWarning=y
  10. #Tidy_Parameters=/reel /sf
  11. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  12. #include <ButtonConstants.au3>
  13. #include <EditConstants.au3>
  14. #include <GUIConstantsEx.au3>
  15. #include <StaticConstants.au3>
  16. #include <WindowsConstants.au3>
  17. #include <MsgBoxConstants.au3>
  18.  
  19. #Region ### START Koda GUI section ### Form=
  20. Global $Form1_1 = GUICreate("AutoPicker", 281, 123, 377, 177)
  21. Global $menu = GUICtrlCreateMenu("Menu")
  22. Global $op = GUICtrlCreateMenuItem("Options", $menu)
  23. Global $exit = GUICtrlCreateMenuItem("Exit", $menu)
  24. Global $Input1 = GUICtrlCreateInput("Yasuo", 74, 33, 137, 21)
  25. Global $Label1 = GUICtrlCreateLabel("Nhâp tên tướng", 88, 9, 105, 18, $SS_CENTER)
  26. Global $Button1 = GUICtrlCreateButton("Bật auto", 88, 57, 105, 25)
  27. GUISetState(@SW_SHOW)
  28. #EndRegion ### END Koda GUI section ###
  29. opengame()
  30. While 1
  31.     $nMsg = GUIGetMsg()
  32.     Switch $nMsg
  33.         Case $GUI_EVENT_CLOSE
  34.             Exit
  35.         Case $exit
  36.             Exit
  37.         Case $Button1
  38.             WinMove('League of Legends', '', 0, 0)
  39.             $size = WinGetClientSize('League of Legends')
  40.             $cp = GUICtrlRead($Input1)
  41.             MsgBox(0, 'Picker', 'Đã set pick ' & $cp, '0.8')
  42.             While 1
  43.                 $pixel1 = PixelSearch(740, 100, 755, 110, 0x676861)
  44.                 If IsArray($pixel1) Then
  45.                     WinActivate('League of Legends')
  46.                     ControlClick('League of Legends', '', '[classnn:Chrome_RenderWidgetHostHWND1]', 'left', 1, $pixel1[0], $pixel1[1])
  47.                     ControlSend('League of Legends', '', '[classnn:Chrome_RenderWidgetHostHWND1]', $cp) ;=> pick daxua
  48.                     Sleep(400)
  49.                     While 1
  50.                         $daxua = PixelSearch(417, 199, 417, 199, 0x3C3C41)
  51.                         If IsArray($daxua) Then
  52.                             ControlClick('League of Legends', '', '[classnn:Chrome_RenderWidgetHostHWND1]', 'left', 1, 398, 166)
  53.                             ExitLoop
  54.                         EndIf
  55.                     WEnd
  56.                     MsgBox(0, 'AutoPicker', 'Đã pick ' & $cp)
  57.  
  58.                     ExitLoop
  59.                 EndIf
  60.             WEnd
  61.  
  62.     EndSwitch
  63. WEnd
  64. Func opengame()
  65.     If Not WinExists('League of Legends') Then Sleep(1)
  66. EndFunc   ;==>opengame
  67.  
  68. Func out()
  69.     WinClose("Auto pick")
  70.     MsgBox($MB_SYSTEMMODAL, "", "mở game chưa?")
  71.     Exit
  72. EndFunc   ;==>out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement