Author Topic: Соеденить два действия  (Read 2082 times)

0 Members and 1 Guest are viewing this topic.

Юра

  • Зашел в гости
  • *
  • Posts: 12
    • View Profile
Соеденить два действия
« on: June 22, 2019, 03:58:20 PM »
Как соединить две команды?
Задача: Когда появится  цвет в области ( у меня: IF_PIXEL_IN(115,687,160,715,4956143), то выполнить операцию:
Code: (clickermann) [Select]
waitms(750)
move(317,219)
waitms(84)
  lDown(317,219)
waitms(104)
  lUp(317,219)
waitms(320)
move(317,218)
waitms(16)
  lDown(317,218)
waitms(79)
  lUp(317,218)
waitms(100)
move(318,218)
waitms(20)
move(319,218)
waitms(7)
move(320,219)
waitms(9)
move(323,221)
waitms(7)
move(327,223)
waitms(9)
move(333,226)
waitms(8)
move(338,230)
waitms(6)
move(341,233)
waitms(10)
move(346,237)
waitms(8)
move(351,242)
waitms(8)
move(358,247)
waitms(8)
move(364,255)
waitms(7)
move(372,261)
waitms(9)
move(379,270)
waitms(7)
move(386,277)
waitms(9)
move(393,284)
waitms(7)
move(399,291)
waitms(9)
move(407,302)
waitms(8)
move(412,310)
waitms(7)
move(415,316)
waitms(9)
move(421,322)
waitms(7)
move(424,328)
waitms(9)
move(428,335)
waitms(7)
move(432,343)
waitms(9)
move(437,352)
waitms(7)
move(441,360)
waitms(9)
move(445,368)
waitms(7)
move(448,374)
waitms(9)
move(451,382)
waitms(8)
move(453,388)
waitms(8)
move(455,392)
waitms(6)
move(457,396)
waitms(10)
move(458,402)
waitms(7)
move(460,408)
waitms(9)
move(461,415)
waitms(8)
move(464,421)
waitms(8)
move(465,428)
waitms(8)
move(467,435)
waitms(8)
move(469,442)
waitms(7)
move(470,449)
waitms(9)
move(473,459)
waitms(7)
move(474,464)
waitms(8)
move(475,468)
waitms(8)
move(476,473)
waitms(9)
move(477,477)
waitms(8)
move(479,482)
waitms(7)
move(479,484)
waitms(9)
move(481,488)
waitms(8)
move(482,491)
waitms(7)
move(483,494)
waitms(8)
move(483,496)
waitms(7)
move(483,497)
waitms(8)
move(483,499)
waitms(8)
move(483,500)
waitms(8)
move(483,501)
waitms(9)
move(483,502)
waitms(7)
move(484,504)
waitms(8)
move(484,506)
waitms(9)
move(484,508)
waitms(8)
move(484,510)
waitms(8)
move(485,511)
waitms(7)
move(485,512)
waitms(9)
move(485,513)
waitms(8)
move(485,514)
waitms(8)
move(485,515)
waitms(8)
move(486,515)
waitms(8)
move(487,516)
waitms(8)
move(487,515)
waitms(8)
move(488,514)
waitms(7)
move(489,512)
waitms(8)
move(489,509)
waitms(9)
move(489,506)
waitms(8)
move(489,503)
waitms(8)
move(489,499)
waitms(8)
move(489,496)
waitms(7)
move(489,493)
waitms(8)
move(489,491)
waitms(8)
move(489,488)
waitms(8)
move(488,486)
waitms(8)
move(488,485)
waitms(8)
move(487,484)
waitms(8)
move(487,483)
waitms(8)
move(487,482)
waitms(9)
move(486,481)
waitms(15)
move(485,480)
waitms(8)
move(484,479)
waitms(24)
move(484,478)
waitms(49)
move(484,477)
waitms(7)
move(484,476)
waitms(17)
move(484,475)
waitms(16)
move(484,474)
waitms(15)
move(484,473)
waitms(24)
move(484,472)
waitms(50)
  lDown(484,472)
waitms(8)
move(484,471)
waitms(50)
  lUp(484,471)
waitms(50)
move(483,469)
waitms(9)
move(481,466)
waitms(7)
move(480,461)
waitms(8)
move(479,457)
waitms(8)
move(474,447)
waitms(9)
move(470,439)
waitms(6)
move(463,432)
waitms(10)
move(458,424)
waitms(8)
move(453,418)
waitms(7)
move(448,413)
waitms(9)
move(445,409)
waitms(8)
move(443,407)
waitms(8)
move(440,403)
waitms(8)
move(437,402)
waitms(8)
move(434,400)
waitms(7)
move(433,399)
waitms(8)
move(432,398)
waitms(9)
move(432,397)
waitms(23)
move(431,397)
waitms(50)
  lDown(431,397)
waitms(50)
move(430,398)
waitms(0)
  lUp(430,398)
waitms(100)
move(429,398)
waitms(25)
move(428,398)
waitms(16)
move(427,398)
waitms(32)
move(426,398)
waitms(7)
move(426,397)
waitms(41)
move(426,396)
waitms(200)
  keyDown(17)
waitms(0)
  keyDown(162)
waitms(200)
  keyDown(65)
waitms(6)
move(426,395)
waitms(164)
  keyUp(65)
waitms(100)
  keyDown(86)
waitms(100)
  keyUp(86)
waitms(96)
move(427,395)
waitms(24)
move(428,395)
waitms(8)
move(429,396)
waitms(2)
  keyUp(17)
waitms(0)
  keyUp(162)
waitms(6)
move(433,401)
waitms(8)
move(436,403)
waitms(8)
move(438,405)
waitms(8)
move(441,407)
waitms(9)
move(443,410)
waitms(8)
move(448,412)
waitms(7)
move(451,415)
waitms(8)
move(455,417)
waitms(9)
move(457,418)
waitms(8)
move(459,419)
waitms(8)
move(462,420)
waitms(8)
move(464,421)
waitms(8)
move(468,423)
waitms(17)
move(470,424)
waitms(39)
move(470,425)
waitms(8)
move(471,425)
waitms(8)
move(471,426)
waitms(8)
move(471,427)
waitms(8)
move(472,429)
waitms(8)
move(475,432)
waitms(8)
move(475,434)
waitms(7)
move(477,438)
waitms(8)
move(479,441)
waitms(8)
move(480,444)
waitms(8)
move(482,449)
waitms(8)
move(484,452)
waitms(7)
move(486,455)
waitms(9)
move(488,458)
waitms(7)
move(489,460)
waitms(9)
move(489,462)
waitms(8)
move(489,463)
waitms(6)
move(490,465)
waitms(8)
move(490,467)
waitms(8)
move(491,470)
waitms(8)
move(493,474)
waitms(8)
move(494,478)
waitms(9)
move(496,484)
waitms(7)
move(496,488)
waitms(9)
move(497,494)
waitms(8)
move(497,497)
waitms(8)
move(498,501)
waitms(7)
move(499,504)
waitms(8)
move(499,505)
waitms(8)
move(500,506)
waitms(9)
move(500,507)
waitms(8)
move(500,508)
waitms(8)
move(500,507)
waitms(8)
move(500,506)
waitms(8)
move(499,506)
waitms(16)
move(499,505)
waitms(104)
  lDown(499,505)
waitms(8)
move(499,504)
waitms(105)
  lUp(499,504)
waitms(600)
// deleted
waitms(0)
// deleted
waitms(610)
  keyUp(18)
waitms(0)
  keyUp(164)
« Last Edit: June 23, 2019, 07:09:42 AM by Oraven »

dramster

  • Герой форума
  • *****
  • Posts: 1134
    • View Profile
Re: Соеденить два действия
« Reply #1 on: June 22, 2019, 10:16:06 PM »
глянь в справку:

Code: (clickermann) [Select]
IF_PIXEL_IN (115,687,160,715,4956143)
   // тут все твои действия  - "то выполнить операцию"
   
else
   waitms(100)// небольшая задержка между сканированием
END_IF

Юра

  • Зашел в гости
  • *
  • Posts: 12
    • View Profile
Re: Соеденить два действия
« Reply #2 on: June 23, 2019, 02:48:37 PM »
Что-то не работает, может ли это связано с переходным цветом?

dramster

  • Герой форума
  • *****
  • Posts: 1134
    • View Profile
Re: Соеденить два действия
« Reply #3 on: June 23, 2019, 05:27:44 PM »
а может перед сканированием нужно добавить информацию о происходящем на экране в буфер кликера?  - GETSCREEN

Code: (clickermann) [Select]
GETSCREEN
IF_PIXEL_IN (115,687,160,715,4956143)
   // тут все твои действия  - "то выполнить операцию"
 
else
   waitms(100)// небольшая задержка между сканированием
END_IF