Author Topic: Need Help :(  (Read 1655 times)

0 Members and 1 Guest are viewing this topic.

Mr_ZoRRo

  • Зашел в гости
  • *
  • Posts: 6
    • View Profile
Need Help :(
« on: July 30, 2018, 09:01:25 AM »
   I trying to write script but  IDK where is problem  if some 1 can help I can be thankfull

 
Code: [Select]
LCLICK(612,476)

GETSCREEN(583,349,697,376)
IF_PIXEL_IN(592,353, 688,369, 524039, 323842, 578052, 573701,898055,192513,516868, 516868, 323842,  1048335, 2080527,192513, 1036047, 258050, 1048335, 578053, 524039, 65280, 385283, 643845 , 1551117, 840967, 968200, 2655767, 1617166, 516612, 578053, 836615, 1485582, 709638, 1090825, 705286, 1090825, 1603854, 1547021, 1156873, 709638, 1156874, 709638, 832263, 832263, 1020937, 1288459, 1288203, 1288204, 1603854, 1547021, 841224, 907016, 2068498, 3239197, 1866769, 1095177, 1095177, 836615, 1288202, 968201, 1288202, 1090825, 771079, 771079, 1288202, 841224)
   
   WAIT(1)
   LCLICK(554,478)
   WAIT(1)
ELSE
   WAIT(1)
   LCLICK(679,477)
   WAIT(1)
END_IF
END


That First Click is for Click Soul coins button
Later I tryed to Check Green color on Training Points box  and if catch Green there to click  Confirm  if not get Green  like Red or something else to click Cancel
   But  alot of times Miss Greens  some times Click   how can be better  ???
how I can catch all Greens without miss any1  any better mode for that ?  or any other better comand for collor from IF_PIXEL_IN ?????
« Last Edit: July 30, 2018, 09:06:36 AM by Mr_ZoRRo »

Oraven

  • Супермодератор
  • Герой форума
  • *
  • Posts: 3685
  • Котэ
    • View Profile
Re: Need Help :(
« Reply #1 on: July 30, 2018, 10:15:22 AM »
Code: (clickermann) [Select]
LCLICK(612,476)
WAITMS(1000) // delay after click 1000 ms = 1 sec

$count = 0
$s = 0

GETSCREEN
COLORMODE(6)
FOR($a=0,$a<8) // calculation of areas
   IF_PIXEL_IN(592,353+$s, 688,369+$s, 4177727)
      INC($count,1)
   END_IF
   INC($s,28)
END_CYC

IF($count > 3) // if there are more than 3 green
   LCLICK(554,478) // Confirm
ELSE
   LCLICK(679,477) // Cancel
END_IF
WAIT(1)

Mr_ZoRRo

  • Зашел в гости
  • *
  • Posts: 6
    • View Profile
Re: Need Help :(
« Reply #2 on: July 30, 2018, 06:09:17 PM »
I think I explain wrong :(   still missing Green  I want script check only 1 box  and not miss Green
I put new Photo   for me is important only this box other up 7 box I dont care
and sorry for my bad eng

Oraven

  • Супермодератор
  • Герой форума
  • *
  • Posts: 3685
  • Котэ
    • View Profile
Re: Need Help :(
« Reply #3 on: July 30, 2018, 06:42:45 PM »
Иу и в чем проблема то?

Code: (clickermann) [Select]
LCLICK(612,476)
WAITMS(1000) // delay after click

GETSCREEN
COLORMODE(6)
IF_PIXEL_IN(592,353, 688,369, 4177727)
   LCLICK(554,478) // Confirm
ELSE
   LCLICK(679,477) // Cancel
END_IF
WAIT(1)

Mr_ZoRRo

  • Зашел в гости
  • *
  • Posts: 6
    • View Profile
Re: Need Help :(
« Reply #4 on: July 30, 2018, 06:54:48 PM »
Hii Again  maybe is problem   that Green code  idk 
1 time if catch Green   3-4 time miss it  :(