Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.38 KB | None | 0 0
  1. while 1
  2.  
  3.    if PixelGetColor(1329, 683) = 7259652 Then
  4.    MouseClick("left", 1339, 683, 1, 5)
  5.    sleep(2000)
  6.       if PixelGetColor(1008, 747) = 1603570 Then ;close facebook share window if blue share button is there
  7.          MouseClick("left", 1138, 362, 1, 2)
  8.       EndIf
  9.       sleep(500)
  10.       if PixelGetColor(1024, 719) = 7259652 Then ;close new level screen with bonus
  11.          MouseClick("left", 1034, 719, 1, 2)
  12.       EndIf
  13.    ;race
  14.    while 1
  15.       SLEEP(5)
  16.       if PixelGetColor(957,292) = 16777215 Then
  17.          sleep(1100)
  18.          send("{DOWN down}")
  19.          sleep(340)
  20.          send("{SPACE}")
  21.          send("{DOWN up}")
  22.          sleep(15)
  23.          ExitLoop
  24.       EndIf
  25.    wend
  26.       while 1
  27.            if StringLeft(PixelGetColor(673,770), 2) = "16" Then
  28.             send("{right}")
  29.             sleep(50)
  30.            Else
  31.                    if PixelGetColor(1309, 802) = 7259652 Then
  32.                      ExitLoop
  33.                   EndIf
  34.  
  35.  
  36.          EndIf
  37.  
  38.       WEnd
  39.  
  40. EndIf
  41.  
  42.       if PixelGetColor(1064, 823) = 5592405 Then
  43.          MouseClick("left", 1084, 823, 1, 5)
  44.          MouseMove(0, 0, 0)
  45.       EndIf
  46.       if PixelGetColor(1303, 818) = 7259652 Then
  47.          MouseClick("left", 1323, 818, 1, 5)
  48.          MouseMove(0, 0, 0)
  49.       EndIf
  50.       if PixelGetColor(1008, 747) = 1603570 Then ;close facebook share window if blue share button is there
  51.          MouseClick("left", 1138, 362, 1, 2)
  52.       EndIf
  53.       if PixelGetColor(1024, 719) = 7259652 Then ;close new level screen with bonus
  54.          MouseClick("left", 1034, 719, 1, 2)
  55.       EndIf
  56. wend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement