1
Общие вопросы / Re: нужна помощь не нашёл
« on: March 14, 2019, 11:30:12 PM »
Ок спасибо попробую по тестировать
Добавлена тема оформления "Clickermann" для кода с подсветкой синтаксиса. Выбирается из выпадающего списка "Код" (рядом с "цвет", "размер" и "шрифт") в режиме редактирования поста. Либо просто BB-тегом "code=clickermann"
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
кнопка купить=(1655,623)
кнопка продать=(1603,354)
координаты кнопки красной и цвет=(1451,115, 1451,808,255)
координаты кнопки жёлтый и цвет=(1451,115, 1451,808,65535)
GETSCREEN
IF($count2_temp > 0)
IF($count2_temp < 30)
IF((($count2_temp-$count0)/($count2_temp +1))*100 > 5)
// IF($count2_temp-$count0 > 5)
$count1_temp= ($count0+1)
$count2_temp = 0
IF_PIXEL_IN(координаты кнопки красной и цвет)
LCLICK(кнопка купить)
WAITMS(500)
IF_PIXEL_IN(координаты кнопки красной и цвет)
LCLICK(кнопка продать)
WAITMS(500)
IF_PIXEL_IN(координаты кнопки жёлтый и цвет)
IF_PIXEL_IN(координаты кнопки жёлтый и цвет)
LCLICK(кнопка продать)
WAITMS(500)
END_IF
END_IF
END_IF
END_IF
END_IF
END_IF
END_IF
GETSCREEN
IF($count2_temp > 10)
IF($count2_temp < 30)
IF((($count2_temp-$count0)/($count2_temp +1))*100 > 5)
// IF($count2_temp-$count0 > 5)
$count1_temp= ($count0+1)
$count2_temp = 0
IF_PIXEL_IN(координаты кнопки красной и цвет)
LCLICK(кнопка купить)
WAITMS(500)
IF_PIXEL_IN(координаты кнопки красной и цвет)
LCLICK(кнопка продать)
WAITMS(500)
IF_PIXEL_IN(координаты кнопки жёлты и цвет)
IF_PIXEL_IN(координаты кнопки жёлты и цвет)
LCLICK(кнопка продать)
WAITMS(500)
END_IF
END_IF
END_IF
END_IF
END_IF
END_IF
END_IF
GETSCREEN
IF_PIXEL_IN(916,627, 948,666, 4833161,4831109,3127649,2994011)
LCLICK(843,648)
END_IF
GETSCREEN
$count0 = PXLCOUNT(1361,182, 1361,518,3260259)
$count1 = PXLCOUNT(1329,182, 1329,518,3260259)
$count2 = PXLCOUNT(1297,182, 1297,518,3260259)
IF($count0 + $count1 + $count1 > $count0_temp)
$count0_temp = $count0 + $count1 + $count2
WAITMS(50)
END_IF
GETSCREEN
$count3 = PXLCOUNT(1361,182, 1361,518,3260259)
$count4 = PXLCOUNT(1329,182, 1329,518,3260259)
$count5 = PXLCOUNT(1297,182, 1297,518,3260259)
$count1_temp = $count3 + $count4 + $count5
IF($count3 = 0 )
$count0_temp = 0
WAITMS(50)
END_IF
//ELSE
WAITMS(50)
IF((($count0_temp-$count1_temp)/($count0_temp+1))*100 > 10)
$count0_temp = 0
LCLICK(1654,640)
WAITMS(0)
END_IF
//ELSE
GETSCREEN
$count6 = PXLCOUNT(1361,182, 1361,518,3881949)
$count7 = PXLCOUNT(1329,182, 1329,518,3881949)
$count8 = PXLCOUNT(1297,182, 1297,518,3881949)
IF($count6 + $count7 + $count8 > $count2_temp)
$count2_temp = $count6 + $count7 + $count8
END_IF
WAIT(0.1)
GETSCREEN
$count9 = PXLCOUNT(1361,182, 1361,518,3881949)
$count10 = PXLCOUNT(1329,182, 1329,518,3881949)
$count11 = PXLCOUNT(1297,182, 1297,518,3881949)
$count4_temp = $count9 + $count10 + $count11
IF($count9 = 0)
$count2_temp = 0
END_IF
//ELSE
WAITMS(50)
IF((($count2_temp-$count4_temp)/($count2_temp+1))*100 > 10)
$count2_temp = 0
LCLICK(1654,640)
WAITMS(0)
END_IF
WAIT(0.1)
GETSCREEN
IF_PIXEL_IN(916,627, 948,666, 4833161,4831109,3127649,2994011)
LCLICK(843,648)
END_IF
GETSCREEN
$count0 = PXLCOUNT(1361,182, 1361,518,3260259)
$count1 = PXLCOUNT(1329,182, 1329,518,3260259)
$count2 = PXLCOUNT(1297,182, 1297,518,3260259)
IF(($count0 + $count1 + $count1) > $count0_temp)
$count0_temp = ($count0 + $count1 + $count2)
WAITMS(50)
END_IF
GETSCREEN
$count3 = PXLCOUNT(1361,182, 1361,518,3260259)
$count4 = PXLCOUNT(1329,182, 1329,518,3260259)
$count5 = PXLCOUNT(1297,182, 1297,518,3260259)
$count1_temp = ( $count3 + $count4 + $count5)
IF($count3 = 0 )
$count0_temp = 0
WAITMS(50)
END_IF
ELSE
WAITMS(50)
IF((($count0_temp-$count1_temp)/$count0_temp)*100 > 10)
$count0_temp = 0
LCLICK(1654,640)
WAITMS(0)
END_IF
ELSE
GETSCREEN
$count6 = PXLCOUNT(1361,182, 1361,518,3881949)
$count7 = PXLCOUNT(1329,182, 1329,518,3881949)
$count8 = PXLCOUNT(1297,182, 1297,518,3881949)
IF(($count6 + $count7 + $count8) > $count2_temp)
$count2_temp = ($count6 + $count7 + $count8)
END_IF
WAIT(0.1)
GETSCREEN
$count9 = PXLCOUNT(1361,182, 1361,518,3881949)
$count10 = PXLCOUNT(1329,182, 1329,518,3881949)
$count11 = PXLCOUNT(1297,182, 1297,518,3881949)
$count4_temp = ($count9 + $count10 + $count11)
IF($count9 = 0)
$count2_temp = 0
END_IF
ELSE
WAITMS(50)
IF((($count2_temp-$count4_temp)/$count2_temp)*100 > 10)
$count2_temp = 0
LCLICK(1654,640)
WAITMS(0)
END_IF
WAIT(0.1)
GetScreen
if_pixel_in(1594,224,1789,242,1098453)
if_pixel_in(1927,643,2044,704,4822893)
if_pixel_in(1927,704,2044,763,4608472,4674265)
DBLClick(1719,465)
keyDown(96)
WAIT(0.02)
keyDown(110)
WAIT(0.02)
keyDown(96)
WAIT(0.02)
keyDown(96)
WAIT(0.02)
keyDown(96)
WAIT(0.02)
keyDown(96)
WAIT(0.02)
keyDown(96)
WAIT(0.02)
keyDown(97)
WAIT(0.02)
keyDown(96)
WAIT(0.02)
keyDown(96)
WAIT(1)
lClick(1689,492)
END_IF
END_IF
END_IF
END_IF
END_IF
GetScreen
if_pixel_in(1594,224,1789,242,1098453)
if_pixel_in(1927,643,2044,704,4822893)
if_pixel_in(1927,704,2044,763,4822893)
wait(1)
lClick(1689,492)
END_IF
END_IF
END_IF
END_IF
END_IF
GetScreen
if_pixel_in(1594,224,1789,242,1098453)
if_pixel_in(1927,643,2044,704,4608472,4674265)
if_pixel_in(1927,704,2044,763,4822893)
lClick(1705,543)
lClick(1705,543)
lClick(1705,543)
lClick(1705,543)
WAIT(0.5)
lClick(1689,492)
END_IF
END_IF
END_IF
END_IF
GetScreen
if_pixel_in(1594,224,1789,242,1098453)
if_pixel_in(1927,643,2044,704,4608472,4674265)
if_pixel_in(1927,704,2044,763,4608472,4674265)
if_pixel_in(1927,763,2044,825,4822893)
lClick(1705,543)
lClick(1705,543)
lClick(1705,543)
lClick(1705,543)
WAIT(0.5)
lClick(1689,492)
END_IF
END_IF
END_IF
END_IF
END_IF
GetScreen
if_pixel_in(1927,643,2044,704,4608472,4674265)
if_pixel_in(1927,704,2044,763,4608472,4674265)
if_pixel_in(1927,763,2044,825,4608472,4674265)
keydown(18)
keypress(68)
KEYUP(18)
END_IF
END_IF
END_IF
END_IF
ну хоть взять здесь что бы с 31 строки перешел на 77 а с 88 на 44