Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Persistent
- CoordMode, Pixel, Relative
- X := 100
- Y := 100
- SetColor := 0xC48559
- SetTimer, WatchLife, 100
- Return
- WatchLife:
- Pixelgetcolor, Color, %X%, %Y%
- if (Color = SetColor)
- Return
- Else
- Send, 5
- Sleep 20
- Return
- --------------------------------------------------------------
- Persistent
- CoordMode, Pixel, Relative
- X1 := 100
- Y1 := 100
- SetColor1 := 0xC48559
- X2 := 100
- Y2 := 80
- SetColor2 := 0xF0DED7
- SetTimer, WatchLife, 500
- Return
- WatchLife:
- Pixelgetcolor, Color, %X1%, %Y1%
- if (Color <> SetColor1)
- {
- Send, 5
- Sleep, 20
- }
- Pixelgetcolor, Color, %X2%, %Y2%
- if (Color <> SetColor2)
- {
- Send, 6
- Sleep, 20
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement