Advertisement
perazite

pixel moniter with two x y postitions

Nov 9th, 2016
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #Persistent
  3. CoordMode, Pixel, Relative
  4.  
  5. X := 100
  6. Y := 100
  7. SetColor := 0xC48559
  8.  
  9. SetTimer, WatchLife, 100
  10. Return
  11.  
  12. WatchLife:
  13. Pixelgetcolor, Color, %X%, %Y%
  14. if (Color = SetColor)
  15.     Return
  16.     Else
  17.   Send, 5
  18.   Sleep 20
  19. Return
  20.  
  21. --------------------------------------------------------------
  22.  
  23.  
  24.  
  25. Persistent
  26. CoordMode, Pixel, Relative
  27.  
  28. X1 := 100
  29. Y1 := 100
  30. SetColor1 := 0xC48559
  31.  
  32. X2 := 100
  33. Y2 := 80
  34. SetColor2 := 0xF0DED7
  35.  
  36. SetTimer, WatchLife, 500
  37. Return
  38.  
  39. WatchLife:
  40.    Pixelgetcolor, Color, %X1%, %Y1%
  41.     if (Color <> SetColor1)
  42.     {
  43.         Send, 5
  44.         Sleep, 20
  45.     }
  46.     Pixelgetcolor, Color, %X2%, %Y2%
  47.     if (Color <> SetColor2)
  48.     {
  49.         Send, 6
  50.         Sleep, 20
  51.     }
  52. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement