Advertisement
Guest User

Untitled

a guest
Dec 30th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.76 KB | None | 0 0
  1. sundries()
  2. Func sundries()
  3.    Global $goto1 = "sundries"
  4.    Global $goto2 = "openanv100"
  5.    ToolTip("Armor Merchant", 1663, 291)
  6.    Do
  7.       safecheck()
  8.    Until PixelGetColor(962, 469) = 0xB39534 ;sprawdza czy otwarte jest okno dialogowe z sundries
  9. EndFunc
  10.  
  11. Func openanv100()
  12.       Global $goto1 = "openanv100"
  13.       Global $goto2 = "alarm"
  14.       Opt("SendKeyDownDelay", 100)
  15.       SEND("{ESC}")
  16.       SEND("b")
  17.       SEND("b")
  18.       SEND("b")
  19.       Opt("SendKeyDownDelay", 5)
  20.       sleep(150)
  21.       MouseMove(963, 509,0)     ; otwiera
  22.       fastmouseright()
  23.       sleep(150)
  24. EndFunc
  25.  
  26.    Func safecheck()
  27.    sleep(20)
  28.    $windowcheck +=1
  29.    If $windowcheck = 25 Then
  30.       call($goto1)
  31.    ElseIf $windowcheck = 50 Then
  32.       Global $windowcheck = 0
  33.       call($goto2)
  34.    EndIf
  35. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement