Author Topic: Clickermann and Game  (Read 5656 times)

0 Members and 1 Guest are viewing this topic.

Θοδωρης Βουλγαριδης

  • Зашел в гости
  • *
  • Posts: 12
    • View Profile
Clickermann and Game
« on: January 02, 2017, 09:51:47 PM »
Hello,can someone to help me with this proggram for one game ???

Vint

  • Супермодератор
  • Герой форума
  • *
  • Posts: 3935
  • Лечу куда хочу. cman 4.13.014x32, 4.14.003 W10
    • View Profile
Re: Clickermann and Game
« Reply #1 on: January 02, 2017, 10:04:18 PM »
Спрашивай.

P.S. товарищи полиглоты, помогите нашему другу, а то некоторые не бельмеса. Ау, любитель языков...
« Last Edit: January 02, 2017, 10:19:24 PM by Vint »


Oraven

  • Супермодератор
  • Герой форума
  • *
  • Posts: 3685
  • Котэ
    • View Profile
Re: Clickermann and Game
« Reply #2 on: January 03, 2017, 08:33:09 AM »
Спрашивай конкретный вопрос, получишь конкретный ответ.

Johnny

  • Создатель
  • Герой форума
  • *
  • Posts: 593
    • View Profile
Re: Clickermann and Game
« Reply #3 on: January 04, 2017, 06:42:03 PM »
чувак бомбит в личку с самого нового года.
че никто неужели не знает греческий? ли хотя бы английский на уровне 5 класса, чтоб гугл нормально перевел ему?

Θοδωρης Βουλγαριδης

  • Зашел в гости
  • *
  • Posts: 12
    • View Profile
Re: Clickermann and Game
« Reply #4 on: January 04, 2017, 08:20:31 PM »
Step:1 This is the script I created using Clickerman
Step:2 This is the sub from the game where I want to use this program
Step:3 When the sub is destroyed this image appears  showing that the player is now disconnected (due to the destruction of the sub)
Step :4 Then I would like from the mouse to go and press X so that I can close this page
Step : 5 Then this page should appear and the mouse should go and press Start which is at the bottom middle of the page as shown
Step : 6 Another page appears and I want the mouse to go to the square icon so that I can maximize the page
Step : 7 The new Page loads and after loading of the game I want the mouse to press in the bottom middle again as shown so that the game can start
Step : 8 Game has loaded,Sub is loaded etc  and I want the mouse to go to the sonar which is at the upper left part where the censor of the mouse is shown according to the picture I sent
Step : 9 Every 2 hours I want the mouse to press again 1 time X to the new page so that it can close and then close also the old page where the mouse sensor is shown
Step: 10 I want the mouse to press the icon deepolis where the mouse sensor is shown
Step 11 :  Browser client of the game is shown then I want the mouse to go to LOGIN (as shown)
Step: 12 Repeat Step : 5

Θοδωρης Βουλγαριδης

  • Зашел в гости
  • *
  • Posts: 12
    • View Profile
Re: Clickermann and Game
« Reply #5 on: January 04, 2017, 08:21:54 PM »
Here are the rest of the images

Θοδωρης Βουλγαριδης

  • Зашел в гости
  • *
  • Posts: 12
    • View Profile
Re: Clickermann and Game
« Reply #6 on: January 06, 2017, 01:04:57 PM »
ok so if this is the order to put specific time of function of clickerman is still too complicated for me to understand.So if I want the program to be on for 30 minutes for example how am I supposed to write that order ?

Oraven

  • Супермодератор
  • Герой форума
  • *
  • Posts: 3685
  • Котэ
    • View Profile
Re: Clickermann and Game
« Reply #7 on: January 07, 2017, 10:16:09 AM »
Вот пошаговое выполнение с 3 по 7 шаг.

Code: (clickermann) [Select]
// Step:5
$check = 0
WHILE($check = 0) // цикл ожидания
   GETSCREEN
   IF_PICTURE_IN (0,0, $_xmax,$_ymax, "Start.bmp", -1, 100) // поиск Старт
      $check = 1
      LCLICK($_return1, $_return2)
      WAIT(2)
   ELSE
      WAITMS(50)
   END_IF
END_CYC

// Step:6
$check = 0
WHILE($check = 0) // цикл ожидания
   GETSCREEN
   IF_PICTURE_IN (0,0, $_xmax,$_ymax, "Развернуть.bmp", -1, 100) // поиск развернуть окно (Maximize)
      $check = 1
      LCLICK($_return1, $_return2)
      WAIT(1)
   ELSE
      WAITMS(50)
   END_IF
END_CYC

// Step:7
$check = 0
WHILE($check = 0) // цикл ожидания
   GETSCREEN
   IF_PICTURE_IN (0,0, $_xmax,$_ymax, "Start2.bmp", -1, 100) // поиск Старт игры
      $check = 1
      LCLICK($_return1, $_return2)
      WAIT(2)
   ELSE
      WAITMS(50)
   END_IF
END_CYC

// Step:3
$check = 0
WHILE($check = 0) // цикл ожидания
   GETSCREEN
   IF_PICTURE_IN (0,0, $_xmax,$_ymax, "destroyed.bmp", -1, 100) // поиск уничтожен
      IF_PICTURE_IN (0,0, $_xmax,$_ymax, "X1.bmp", -1, 100) // поиск закрыть окно // Step:4
         $check = 1
         LCLICK($_return1, $_return2)
         WAIT(1)
      ELSE
         WAITMS(50)
      END_IF
   END_IF
END_CYC


Перезапустить страницу можно таким способом
Code: (clickermann) [Select]
KEYDOWN (#CTRL) // Закрыть страницу Ctrl+W
WAITMS (50)
KEYPRESS(#W)
KEYUP (#CTRL)
WAIT(2)

// пример
EXECUTE("http://crapware.aidf.org/forum/") // открыть страницу в браузере по умолчанию
WAIT(10)

Условие срабатывает через 2 часа и каждые 2 часа
Code: (clickermann) [Select]
DEFINE($time, $_time_t + 7200) // таймер на 2 часа
IF($time < $_time_t) // условие срабатывает 1 раз в 2 часа
   KEYDOWN (#CTRL) // Закрыть страницу
   WAITMS (50)
   KEYPRESS(#W)
   KEYUP (#CTRL)
   WAIT(2)
   
   EXECUTE("http://crapware.aidf.org/forum/index.php?topic=2935.0") // открыть страницу в браузере по умолчанию
   WAIT(10)
   
   // Click Login
   
   $time = $_time_t + 7200
END_IF

Θοδωρης Βουλγαριδης

  • Зашел в гости
  • *
  • Posts: 12
    • View Profile
Re: Clickermann and Game
« Reply #8 on: January 08, 2017, 04:05:54 PM »
Code: (clickermann) [Select]
$check = 0
WHILE($check = 0) // цикл ожидания
   GETSCREEN
   IF_PICTURE_IN (0,0, $_xmax,$_ymax, "Start.bmp", -1, 100) // поиск Старт
      $check = 1
      LCLICK($_return1, $_return2)
      WAIT(2)
   ELSE
      WAITMS(50)
   END_IF
END_CYC
 

$check = 0
WHILE($check = 0) // цикл ожидания
   GETSCREEN
   IF_PICTURE_IN (0,0, $_xmax,$_ymax, "Развернуть.bmp", -1, 100) // поиск развернуть окно (Maximize)
      $check = 1
      LCLICK($_return1, $_return2)
      WAIT(1)
   ELSE
      WAITMS(50)
   END_IF
END_CYC
 

$check = 0
WHILE($check = 0) // цикл ожидания
   GETSCREEN
   IF_PICTURE_IN (0,0, $_xmax,$_ymax, "Start2.bmp", -1, 100) // поиск Старт игры
      $check = 1
      LCLICK($_return1, $_return2)
      WAIT(2)
   ELSE
      WAITMS(50)
   END_IF
END_CYC
 

$check = 0
WHILE($check = 0) // цикл ожидания
   GETSCREEN
   IF_PICTURE_IN (0,0, $_xmax,$_ymax, "destroyed.bmp", -1, 100) // поиск уничтожен
      IF_PICTURE_IN (0,0, $_xmax,$_ymax, "X1.bmp", -1, 100) // поиск закрыть окно // Step:4
         $check = 1
         LCLICK($_return1, $_return2)
         WAIT(1)
      ELSE
         WAITMS(50)
      END_IF
   END_IF
END_CYC



okay,thank you but i cant understand with this $check = 0   "destroyed.bmp", -1,  "X1.bmp", -1 "Start2.bmp", -1  "Развернуть.bmp", -1  "Start.bmp", -1 what should I do with them;
« Last Edit: January 08, 2017, 05:09:01 PM by Oraven »

Oraven

  • Супермодератор
  • Герой форума
  • *
  • Posts: 3685
  • Котэ
    • View Profile
Re: Clickermann and Game
« Reply #9 on: January 08, 2017, 05:11:37 PM »
ты должен создать эти картинки из screenshots. Поместить их в тот же каталог где находится скрипт.
Размер не более 50х50 пикселов. Формат BMP 24bit

Θοδωρης Βουλγαριδης

  • Зашел в гости
  • *
  • Posts: 12
    • View Profile
Re: Clickermann and Game
« Reply #10 on: January 08, 2017, 10:06:56 PM »
how can to closed every 30 minutes like this ? DEFINE($time, $_time_t + 7200) // таймер на 2 часа
IF($time < $_time_t) // условие срабатывает 1 раз в 2 часа
   KEYDOWN (#CTRL) // Закрыть страницу
   WAITMS (50)
   KEYPRESS(#W)
   KEYUP (#CTRL)
   WAIT(2)
 is 1800 ? here ? DEFINE($time, $_time_t + 1800) // таймер на 2 часа
IF($time < $_time_t) // условие срабатывает 1 раз в 2 часа
   KEYDOWN (#CTRL) // Закрыть страницу
   WAITMS (50)
   KEYPRESS(#W)
   KEYUP (#CTRL)
   WAIT(2)

Oraven

  • Супермодератор
  • Герой форума
  • *
  • Posts: 3685
  • Котэ
    • View Profile
Re: Clickermann and Game
« Reply #11 on: January 08, 2017, 10:12:29 PM »
how can to closed every 30 minutes like this ? DEFINE($time, $_time_t + 7200) // таймер на 2 часа
IF($time < $_time_t) // условие срабатывает 1 раз в 2 часа
   KEYDOWN (#CTRL) // Закрыть страницу
   WAITMS (50)
   KEYPRESS(#W)
   KEYUP (#CTRL)
   WAIT(2)
 is 1800 ? here ? DEFINE($time, $_time_t + 1800) // таймер на 2 часа
IF($time < $_time_t) // условие срабатывает 1 раз в 2 часа
   KEYDOWN (#CTRL) // Закрыть страницу
   WAITMS (50)
   KEYPRESS(#W)
   KEYUP (#CTRL)
   WAIT(2)

Да, верно.
Code: (clickermann) [Select]
    DEFINE($time, $_time_t + 1800) // это для того чтобы условие сработало через 30 минут после запуска скрипта.
    IF($time < $_time_t)
       KEYDOWN (#CTRL) // Закрыть страницу
       WAITMS (50)
       KEYPRESS(#W)
       KEYUP (#CTRL)
       WAIT(2)     
       $time = $_time_t + 1800 // это для того чтобы условие срабатывало каждые 30 минут.
    END_IF

Θοδωρης Βουλγαριδης

  • Зашел в гости
  • *
  • Posts: 12
    • View Profile
Re: Clickermann and Game
« Reply #12 on: January 09, 2017, 12:35:32 AM »
with this im okay this  is my script and with this script i shoot fish,but with this::IF($time < $_time_t)
       KEYDOWN (#CTRL) // Закрыть страницу
       WAITMS (50)
       KEYPRESS(#W)
       KEYUP (#CTRL)
       WAIT(2)     
       $time = $_time_t + 1800 // это для того чтобы условие срабатывало каждые 30 минут.
    END_IF dont closes the pages every 30 minutes why ? i need to shoot fish ane every 30 minutes to close the page and join again on the first page like this: go: // ÁÜÅÒ ÐÈÁÊÓ  RED
WAIT(1)
getscreen
if_pixel_in(1005, 120, 1187, 250, 128, 255, 6382077)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
WAIT (1)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
lclick($_return1, $_return2)
WAITMS (10)
MOVE (960, 185)
WAITMS (50)
Else
WAITMS (50)
end_if
goto(go)
IF($time < $_time_t)
       KEYDOWN (#CTRL) // Закрыть страницу
       WAITMS (50)
       KEYPRESS(#W)
       KEYUP (#CTRL)
       WAIT(2)     
       $time = $_time_t + 1800 // это для того чтобы условие срабатывало каждые 30 минут.
    END_IF
EXECUTE(http://www.deepolis.com/index.php?) // открыть страницу в браузере по умолчанию
   WAIT(10) and dont make it....

Oraven

  • Супермодератор
  • Герой форума
  • *
  • Posts: 3685
  • Котэ
    • View Profile
Re: Clickermann and Game
« Reply #13 on: January 09, 2017, 07:49:54 AM »
Ты зациклил скрипт своим GOTO

Верный вариант
Code: (clickermann) [Select]
GETSCREEN
IF_PIXEL_IN(1005,120, 1187,250, 128,255,6382077)
   
   FOR($a=0,$a<10) // повтор 10 раз
      lclick($_return1, $_return2)
   END_CYC
   
   WAIT(1)
   
   FOR($a=0,$a<10) // повтор 10 раз
      lclick($_return1, $_return2)
   END_CYC
   WAITMS (10)
   
   MOVE (960, 185)
   WAITMS (50)
   
ELSE
   WAITMS (50)
END_IF

DEFINE($time, $_time_t + 1800)
IF($time < $_time_t)
   KEYDOWN (#CTRL) // Закрыть страницу
   WAITMS (50)
   KEYPRESS(#W)
   KEYUP (#CTRL)
   WAIT(2)
   EXECUTE("http://www.deepolis.com/index.php") // открыть страницу в браузере по умолчанию
   WAIT(10)
   $time = $_time_t + 1800
END_IF

Θοδωρης Βουλγαριδης

  • Зашел в гости
  • *
  • Posts: 12
    • View Profile
Re: Clickermann and Game
« Reply #14 on: January 09, 2017, 03:03:42 PM »
thank you built me but I still have one problem.
step1:close the secong page
step2:go again on first page and put on entry
step3:to press start
step4:comes another page to enlarge it
step5:and next join on game,and again if join on game to shooting fish again