Author Topic: a question 2  (Read 1925 times)

0 Members and 1 Guest are viewing this topic.

Teo.B

  • Зашел в гости
  • *
  • Posts: 15
    • View Profile
a question 2
« on: May 25, 2017, 06:19:35 PM »
Hello i have that script for one game,and until the last wait, work fine afterwards when it starts difine and I do not know then why it does not work if you know how to tell me it feels and help me?

Code: (clickermann) [Select]
LDOWN (1055,130)
WAITMS (500)
MOVE (997,132)
WAITMS (50)
LUP (997,132)
end_if
WAIT(1)
MOVE(930,185)
WAITMS(15)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(930,200)
WAIT(1)
MOVE(995,200)
WAITMS(15)
LCLICK(995,200)
WAITMS(15)
LCLICK(995,200)
WAITMS(15)
LCLICK(995,200)
WAITMS(15)
LCLICK(995,200)
WAITMS(15)
LCLICK(995,200)
WAITMS(15)
MOVE(930,200)
WAIT(2)
MOVE(930,280)
WAITMS(15)
MOVE(930,280)
WAITMS(15)
MOVE(930,280)
WAITMS(15)
LCLICK(995,280)
WAITMS(15)
LCLICK(995,280)
WAITMS(15)
LCLICK(995,280)
WAIT(2)
MOVE(930,185)
WAITMS(15)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(930,215)
WAIT(1)
MOVE(995,215)
WAITMS(15)
LCLICK(995,215)
WAITMS(15)
LCLICK(995,215)
WAITMS(15)
LCLICK(995,215)
WAITMS(15)
LCLICK(995,215)
WAITMS(15)
LCLICK(995,215)
WAITMS(15)
MOVE(930,215)
WAIT(3)
MOVE(930,215)
WAIT(1)
MOVE(930,185)
WAITMS(15)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(930,230)
WAIT(1)
MOVE(995,230)
WAITMS(15)
LCLICK(995,230)
WAITMS(15)
LCLICK(995,230)
WAITMS(15)
LCLICK(995,230)
WAITMS(15)
LCLICK(995,230)
WAITMS(15)
LCLICK(995,230)
WAITMS(15)
MOVE(930,230)
WAIT(1)
DEFINE($time, $_time_t + 5)
IF($time < $_time_t)
KEYDOWN (#CTRL)
WAITMS (50)
KEYPRESS(#W)
KEYUP (#CTRL)
WAIT(2)
EXECUTE("http://www.deepolis.com/index.php")
wait(5)
move(192,14)
wait(1)
lclick(192,14)
wait(1)
move(366,323)
wait(1)
lclick(366,323)
wait(15)
move(627,634)
wait(1)
lclick(627,634)
wait(1)
move(607,596)
wait(1)
lclick(607,596)
wait(5)
move(946,15)
wait(1)
lclick(946,15)
wait(10)
move(654,654)
wait(1)
lclick(654,654)
wait(10)
$time = $_time_t + 5
END_IF
goto(go)
« Last Edit: May 25, 2017, 07:40:27 PM by Oraven »

Oraven

  • Супермодератор
  • Герой форума
  • *
  • Posts: 3685
  • Котэ
    • View Profile
Re: a question 2
« Reply #1 on: May 25, 2017, 07:48:24 PM »
Лишний END_IF на 6 строке.
Условие с 5 секундами не имеет смысла так как скрипт выше выполняется больше 5 секунд.

Code: (clickermann) [Select]
LDOWN (1055,130)
WAITMS (500)
MOVE (997,132)
WAITMS (50)
LUP (997,132)
WAIT(1)
MOVE(930,185)
WAITMS(15)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(930,200)
WAIT(1)
MOVE(995,200)
WAITMS(15)
LCLICK(995,200)
WAITMS(15)
LCLICK(995,200)
WAITMS(15)
LCLICK(995,200)
WAITMS(15)
LCLICK(995,200)
WAITMS(15)
LCLICK(995,200)
WAITMS(15)
MOVE(930,200)
WAIT(2)
MOVE(930,280)
WAITMS(15)
MOVE(930,280)
WAITMS(15)
MOVE(930,280)
WAITMS(15)
LCLICK(995,280)
WAITMS(15)
LCLICK(995,280)
WAITMS(15)
LCLICK(995,280)
WAIT(2)
MOVE(930,185)
WAITMS(15)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(930,215)
WAIT(1)
MOVE(995,215)
WAITMS(15)
LCLICK(995,215)
WAITMS(15)
LCLICK(995,215)
WAITMS(15)
LCLICK(995,215)
WAITMS(15)
LCLICK(995,215)
WAITMS(15)
LCLICK(995,215)
WAITMS(15)
MOVE(930,215)
WAIT(3)
MOVE(930,215)
WAIT(1)
MOVE(930,185)
WAITMS(15)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
LCLICK(995,185)
WAITMS(15)
MOVE(930,185)
WAIT(1)
MOVE(930,230)
WAIT(1)
MOVE(995,230)
WAITMS(15)
LCLICK(995,230)
WAITMS(15)
LCLICK(995,230)
WAITMS(15)
LCLICK(995,230)
WAITMS(15)
LCLICK(995,230)
WAITMS(15)
LCLICK(995,230)
WAITMS(15)
MOVE(930,230)
WAIT(1)

DEFINE($time, $_time_t + 5)
IF($time < $_time_t)
   KEYDOWN (#CTRL)
   WAITMS (50)
   KEYPRESS(#W)
   KEYUP (#CTRL)
   WAIT(2)
   EXECUTE("http://www.deepolis.com/index.php")
   wait(5)
   move(192,14)
   wait(1)
   lclick(192,14)
   wait(1)
   move(366,323)
   wait(1)
   lclick(366,323)
   wait(15)
   move(627,634)
   wait(1)
   lclick(627,634)
   wait(1)
   move(607,596)
   wait(1)
   lclick(607,596)
   wait(5)
   move(946,15)
   wait(1)
   lclick(946,15)
   wait(10)
   move(654,654)
   wait(1)
   lclick(654,654)
   wait(10)
   $time = $_time_t + 5
END_IF

Teo.B

  • Зашел в гости
  • *
  • Posts: 15
    • View Profile
Re: a question 2
« Reply #2 on: May 25, 2017, 08:06:52 PM »
ok but i need 10 minutes so i change on 600 seconds but it does not work when it comes to define if you know why?

Oraven

  • Супермодератор
  • Герой форума
  • *
  • Posts: 3685
  • Котэ
    • View Profile
Re: a question 2
« Reply #3 on: May 25, 2017, 08:25:12 PM »
Возможно не работало из за лишнего END_IF

Вот так должно работать

Code: (clickermann) [Select]
DEFINE($time, $_time_t + 600)
IF($time < $_time_t)
   KEYDOWN (#CTRL)
   WAITMS (50)
   KEYPRESS(#W)
   KEYUP (#CTRL)
   WAIT(2)
   EXECUTE("http://www.deepolis.com/index.php")
   wait(5)
   move(192,14)
   wait(1)
   lclick(192,14)
   wait(1)
   move(366,323)
   wait(1)
   lclick(366,323)
   wait(15)
   move(627,634)
   wait(1)
   lclick(627,634)
   wait(1)
   move(607,596)
   wait(1)
   lclick(607,596)
   wait(5)
   move(946,15)
   wait(1)
   lclick(946,15)
   wait(10)
   move(654,654)
   wait(1)
   lclick(654,654)
   wait(10)
   $time = $_time_t + 600
END_IF

Teo.B

  • Зашел в гости
  • *
  • Posts: 15
    • View Profile
Re: a question 2
« Reply #4 on: May 25, 2017, 10:04:07 PM »
dont work i dont know why :/

Cleoss

  • Активный участник
  • ***
  • Posts: 260
  • Автоматизируй это!
    • View Profile
Re: a question 2
« Reply #5 on: August 14, 2017, 03:15:28 PM »
Oops sorry, I dont see how clicker can understand what's your variable $_time_t is equal to, seems u 1st must define it before u use it in other string "DEFINE($time, $_time_t + 600)".

PS. Also if u use LDown then u must use its pair LUp after it, or use one operator LClick inspite of both ldown+lup.
« Last Edit: August 14, 2017, 03:39:13 PM by Cleoss »