Advertisement
Guest User

bot one finger death punch

a guest
Nov 20th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. Global $User32
  2. Global $x_koef, $y_koef
  3. Global $interval
  4. $x_koef = 1920/@DesktopWidth
  5. $y_koef = 1080/@DesktopHeight
  6.  
  7. #include <Constants.au3>
  8. #include <WinAPI.au3>
  9.  
  10. $color = 0x2EB2DF
  11. $color2 = 0x2CB3E0
  12.  
  13. HotKeySet ("{f1}", "myExit")
  14.  
  15. Func _MouseClickFast($x, $y)
  16. $x = $x*65535/@DesktopWidth
  17. $y = $y*65535/@DesktopHeight
  18.  
  19. _WinAPI_Mouse_Event(BitOR($MOUSEEVENTF_ABSOLUTE, $MOUSEEVENTF_MOVE), $x, $y)
  20. _WinAPI_Mouse_Event(BitOR($MOUSEEVENTF_ABSOLUTE, $MOUSEEVENTF_LEFTDOWN), $x, $y)
  21. _WinAPI_Mouse_Event(BitOR($MOUSEEVENTF_ABSOLUTE, $MOUSEEVENTF_LEFTUP), $x, $y)
  22. EndFunc
  23.  
  24. While(1)
  25. WinActivate("One Finger Death Punch")
  26. $pix = PixelGetColor (916, 560)
  27.  
  28. if ($pix=$color) Then
  29. MouseClick("left",$pix[0],$pix[1],1,1)
  30. EndIf
  31.  
  32. $pix = PixelGetColor(1007, 567)
  33.  
  34. if ($pix=$color2) Then
  35. MouseClick("right",$pix[0],$pix[1],1,1)
  36. EndIf
  37.  
  38. WEnd
  39.  
  40. func myExit()
  41. Exit
  42. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement