Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CoordMode, Pixel, Window
- areax1 = 30
- areay1 = 99
- areax2 = 828
- areay2 = 540
- f1::
- settimer, whichcat, 1000 ;check for cat
- Return
- whichcat:
- ;=====================check 1=================================================
- PixelSearch,px,py, %areax1%,%areay1%,%areax2%, %areay2%, 0x2366B1,3, Fast
- if ErrorLevel
- {
- }
- else
- {
- settimer, whichcat, off
- msgbox, Hi Pumkin
- Return
- }
- ;=====================check 2=================================================
- PixelSearch,px,py, %areax1%,%areay1%,%areax2%, %areay2%, 0x1C4B89,3, Fast
- if ErrorLevel
- {
- }
- else
- {
- settimer, whichcat, off
- msgbox, Hi Pumkin
- Return
- }
- ;=====================check 3=================================================
- PixelSearch,px,py, %areax1%,%areay1%,%areax2%, %areay2%, 0x2F68A9,3, Fast
- if ErrorLevel
- {
- }
- else
- {
- settimer, whichcat, off
- msgbox, Hi Pumkin
- Return
- }
- ;=====================check 4=================================================
- PixelSearch,px,py, %areax1%,%areay1%,%areax2%, %areay2%, 0x4D95C5,3, Fast
- if ErrorLevel
- {
- }
- else
- {
- settimer, whichcat, off
- msgbox, Hi Pumkin
- Return
- }
- Return
- f2::exitapp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement