Author Topic: Прокрутка колёсика мыши командой WHEELDOWN не работает  (Read 2863 times)

0 Members and 1 Guest are viewing this topic.

trillian2018

  • Зашел в гости
  • *
  • Posts: 10
    • View Profile
Здравствуйте, уважаемые форумчане! В моем коде несколько команд на сдвиг текста (в текстовом файле) при помощи команды WHEELDOWN, при этом первые 2 раза команда на прокрутку срабатывает как положено, а на третий раз нет. поясню: это скрипт, который копирует большое количество текста, разбитого по абзацам из текстового файла в браузер частями в разные формы на странице. чтобы происходило смещение текста и нужный мне абзац находился всегда сверху по одним и тем же координатам после копирования строки я вставил туда команду прокрутки (если выделить текст в блокноте и прокрутить колесико вниз (т.е. текст уйдет вверх, за рамки редактора) то при переключении на любое другое окно и возврат обратно позволяет выделенной строке находится всегда сверху, в области редактирования) первые два абзаца отрабатывают как положено и прокрутка работает без сбоя, а вот на третем прокрутка не работает. подскажите пожалуйста как со 100% вероятностью заставить отработать команду прокрутки, я раньше сталкивался с подобной проблемой, но там было достаточно переместить курсор на другую область и прокрутка срабатывала. тут такой вариант не помог. заранее спасибо ))

trillian2018

  • Зашел в гости
  • *
  • Posts: 10
    • View Profile
Code: (clickermann) [Select]
// 11.06.2019
#name "New Script"

execute("test.txt")

WAITMS (1000)

wndstate( wndfind("text-commands"), 1)

WAITMS (200)

KEYDOWN (#WIN)   
WAITMS (50)
KEYDOWN (#UP)
WAITMS (50)
KEYUP (#UP)
KEYUP (#WIN)

WAITMS (200)
LCLICK (3,700)
WAITMS (50)

KEYDOWN (#SHIFT)   
WAITMS (50)
KEYDOWN (#DOWN) //1
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //10
WAITMS (50)
KEYDOWN (#DOWN) //11
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //20
WAITMS (50)
KEYDOWN (#DOWN) //21
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //30
WAITMS (50)
KEYDOWN (#DOWN) //31
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //40
WAITMS (50)
KEYDOWN (#DOWN) //41
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //50
WAITMS (50)
KEYDOWN (#DOWN) //51
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //60
WAITMS (50)
KEYDOWN (#DOWN) //61
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //70
WAITMS (50)
KEYDOWN (#DOWN) //71
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //77
WAITMS (50)
KEYUP (#SHIFT)

WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#C)
WAITMS (50)
KEYUP (#C)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (50)

WHEELDOWN (1) //1
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50) //13

wndstate( wndfind("text-commands"), 0)
WAITMS (200)
wndstate( wndfind("Firefox-register"), 1)

WAITMS (500)
LCLICK (513, 306) //клик поле стартовое сообщение
WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)

LCLICK (513, 436) //клик поле список команд /help

WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)
 
WAITMS (50)

WHEELDOWN (1) //1
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1) //9
 
WAITMS (50)
LCLICK (229, 688) //клик сохранить
WAITMS (3000)

WHEELUP (1) //1
WAITMS (50)
WHEELUP (1)
WAITMS (50)
WHEELUP (1)
WAITMS (50)
WHEELUP (1)
WAITMS (50)
WHEELUP (1)
WAITMS (50)
WHEELUP (1)
WAITMS (50)
WHEELUP (1)
WAITMS (50)
WHEELUP (1)
WAITMS (50)
WHEELUP (1) //9

WAITMS (50)
LCLICK (1229, 145)
WAITMS (1000)

wndstate( wndfind("Firefox-register"), 0)
WAITMS (200)
wndstate( wndfind("text-commands"), 1)

WAITMS (500)
DBLCLICK (2, 70) //выбор команды в тексте
WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#C)
WAITMS (50)
KEYUP (#C)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (100)
WHEELDOWN (1)
WAITMS (100)

wndstate( wndfind("text-commands"), 0)
WAITMS (200)
wndstate( wndfind("Firefox-register"), 1)
WAITMS (500)

LCLICK (1237, 145)
WAITMS (2000)
LCLICK (513, 345) //выбор команды в Firefox-register

WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (50)

wndstate( wndfind("Firefox-register"), 0)
WAITMS (200)
wndstate( wndfind("text-commands"), 1)

WAITMS (500)

LCLICK (2, 87) //выбор заголовка в тексте
WAITMS (50)
KEYDOWN (#SHIFT)   
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#C)
WAITMS (50)
KEYUP (#C)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (50)
LCLICK (687, 6)
WAITMS (50)
MOVE (710, 66)
WAITMS (50)

WHEELDOWN (1)
WAITMS (1000)
WHEELDOWN (1)
WAITMS (1000)
WHEELDOWN (1)
WAITMS (1000)
WHEELDOWN (1)
WAITMS (1000)

wndstate( wndfind("text-commands"), 0)
WAITMS (200)
wndstate( wndfind("Firefox-register"), 1)
WAITMS (500)

LCLICK (513, 400) //выбор заголовка в Firefox-register

WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (50)

wndstate( wndfind("Firefox-register"), 0)
WAITMS (200)
wndstate( wndfind("text-commands"), 1)

WAITMS (500)

LCLICK (2, 66) //выбор текста команды в тексте
WAITMS (50)
KEYDOWN (#SHIFT)   
WAITMS (50)
KEYDOWN (#DOWN) //1
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //10
WAITMS (50)
KEYDOWN (#DOWN) //11
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //20
WAITMS (50)
KEYDOWN (#DOWN) //21
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //30
WAITMS (50)
KEYDOWN (#DOWN) //31
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //40
WAITMS (50)
KEYDOWN (#DOWN) //41
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //50
WAITMS (50)
KEYDOWN (#DOWN) //51
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //60
WAITMS (50)
KEYDOWN (#DOWN) //61
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //70
WAITMS (50)
KEYDOWN (#DOWN) //71
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN (#DOWN) //77
WAITMS (50)
KEYUP (#SHIFT)

WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#C)
WAITMS (50)
KEYUP (#C)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (50)

WHEELDOWN (1) //1
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50) //13

wndstate( wndfind("text-commands"), 0)
WAITMS (200)
wndstate( wndfind("Firefox-register"), 1)

WAITMS (500)

LCLICK (513, 477) //выбор текста команды в Firefox-register

WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (50)

WHEELDOWN (1) //1
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1) //8
WAITMS (50)

LCLICK (230, 690)

WAITMS (3000)

wndstate( wndfind("Firefox-register"), 0)
WAITMS (200)

//------------начало границы циклической записи команд

wndstate( wndfind("text-commands"), 1)

WAITMS (500)
DBLCLICK (2, 70) //выбор команды в тексте
WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#C)
WAITMS (50)
KEYUP (#C)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (100)
WHEELDOWN (1)
WAITMS (100)

wndstate( wndfind("text-commands"), 0)
WAITMS (200)
wndstate( wndfind("Firefox-register"), 1)
WAITMS (500)

LCLICK (1237, 145)
WAITMS (2000)
LCLICK (513, 345) //выбор команды в Firefox-register

WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (50)

wndstate( wndfind("Firefox-register"), 0)
WAITMS (200)
wndstate( wndfind("text-commands"), 1)

WAITMS (500)

LCLICK (2, 87) //выбор заголовка в тексте
WAITMS (50)
KEYDOWN (#SHIFT)   
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#C)
WAITMS (50)
KEYUP (#C)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (100)
WHEELDOWN (1)
WAITMS (100)

wndstate( wndfind("text-commands"), 0)
WAITMS (200)
wndstate( wndfind("Firefox-register"), 1)
WAITMS (500)

LCLICK (513, 400) //выбор заголовка в Firefox-register

WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (50)

wndstate( wndfind("Firefox-register"), 0)
WAITMS (200)
wndstate( wndfind("text-commands"), 1)

WAITMS (500)

LDOWN (2, 52) //выбор текста команды в тексте
WAITMS (50)
LDOWN (2, 647)
WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#C)
WAITMS (50)
KEYUP (#C)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (50)

WHEELDOWN (1) //1
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1) //12
WAITMS (50)

wndstate( wndfind("text-commands"), 0)
WAITMS (200)
wndstate( wndfind("Firefox-register"), 1)

WAITMS (500)

LCLICK (513, 477) //выбор текста команды в Firefox-register

WAITMS (50)

KEYDOWN (#CTRL)     
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (50)

WHEELDOWN (1) //1
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1)
WAITMS (50)
WHEELDOWN (1) //8
WAITMS (50)

LCLICK (230, 690)

WAITMS (3000)

wndstate( wndfind("Firefox-register"), 0)
WAITMS (200)

//-------------конец границы циклической записи команд

print("окончание работы")

HALT
« Last Edit: June 12, 2019, 11:22:15 AM by Oraven »

trillian2018

  • Зашел в гости
  • *
  • Posts: 10
    • View Profile
знаю код не имеет красивого вида, но оптимизацию его работы я буду выполнять позже, когда он сможет выполнять свои основные функции и отрабатывать без ошибок

trillian2018

  • Зашел в гости
  • *
  • Posts: 10
    • View Profile
Все нашел ошибку. оказывается колесико не работает, если нажата клавиша SHIFT в конце третьей команды я забыл ее добавить, поэтому прокрутка не срабатывала

trillian2018

  • Зашел в гости
  • *
  • Posts: 10
    • View Profile
Теперь может кто посоветует как уменьшить код? но он еще не закончен

Vint

  • Супермодератор
  • Герой форума
  • *
  • Posts: 3935
  • Лечу куда хочу. cman 4.13.014x32, 4.14.003 W10
    • View Profile
Использовать базовые структуры - это не оптимизация. Почитай про условия подпрограммы и главное - циклы. Не нужно будет писать с самого начала сотни одинаковых строк кода.


Oraven

  • Супермодератор
  • Герой форума
  • *
  • Posts: 3685
  • Котэ
    • View Profile
Теперь может кто посоветует как уменьшить код? но он еще не закончен

Code: (clickermann) [Select]
KEYDOWN (#SHIFT)   
WAITMS (50)
KEYDOWN (#DOWN) //1
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)
KEYDOWN зажимает клавишу. То есть после этого подразумевается команда отпускающая её. А у тебя зажатия идут за зажатиями. Клкер конечно отпустит и нажмет клавишу снова но в конце DOWN останется зажатой.
Вместо этого нужно использовать команду KEYPRESS.

Повторяющийся код нужно поместить в циклы FOR
Code: (clickermann) [Select]
// 11.06.2019
#name "New Script"

execute("test.txt")
WAITMS (1000)

wndstate( wndfind("text-commands"), 1)
WAITMS (200)

KEYDOWN (#WIN)
WAITMS (50)
KEYDOWN (#UP)
WAITMS (50)
KEYUP (#UP)
KEYUP (#WIN)

WAITMS (200)
LCLICK (3,700)
WAITMS (50)

KEYDOWN (#SHIFT)
WAITMS (50)
FOR($i=0,$i<77)
   KEYPRESS(#DOWN) // нажимаем Вниз 77 раз
   WAITMS (50)
END_CYC
KEYUP (#SHIFT)
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#C)
WAITMS (50)
KEYUP (#C)
WAITMS (50)
KEYUP (#CTRL)
WAITMS (50)

FOR($i=0,$i<13)
   WHEELDOWN (1) // крутим колесико 13 раз
   WAITMS (50)
END_CYC

wndstate( wndfind("text-commands"), 0)
WAITMS (200)
wndstate( wndfind("Firefox-register"), 1)
WAITMS (500)

LCLICK (513, 306) //клик поле стартовое сообщение
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)
WAITMS (50)

LCLICK (513, 436) //клик поле список команд /help
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)
WAITMS (50)

FOR($i=0,$i<9)
   WHEELDOWN (1) // крутим колесико 9 раз
   WAITMS (50)
END_CYC

LCLICK (229, 688) //клик сохранить
WAITMS (3000)

FOR($i=0,$i<9)
   WHEELUP (1) // крутим колесико 9 раз
   WAITMS (50)
END_CYC

LCLICK (1229, 145)
WAITMS (1000)

wndstate( wndfind("Firefox-register"), 0)
WAITMS (200)
wndstate( wndfind("text-commands"), 1)
WAITMS (500)

DBLCLICK (2, 70) //выбор команды в тексте
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#C)
WAITMS (50)
KEYUP (#C)
WAITMS (50)
KEYUP (#CTRL)
WAITMS (100)

WHEELDOWN (1)
WAITMS (100)

wndstate( wndfind("text-commands"), 0)
WAITMS (200)
wndstate( wndfind("Firefox-register"), 1)
WAITMS (500)

LCLICK (1237, 145)
WAITMS (2000)
LCLICK (513, 345) //выбор команды в Firefox-register
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)
WAITMS (50)

wndstate( wndfind("Firefox-register"), 0)
WAITMS (200)
wndstate( wndfind("text-commands"), 1)
WAITMS (500)

LCLICK (2, 87) //выбор заголовка в тексте
WAITMS (50)
KEYDOWN (#SHIFT)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#C)
WAITMS (50)
KEYUP (#C)
WAITMS (50)
KEYUP (#CTRL)
WAITMS (50)

LCLICK (687, 6)
WAITMS (50)
MOVE (710, 66)
WAITMS (50)

FOR($i=0,$i<4)
   WHEELDOWN (1) // крутим колесико 4 раза
   WAITMS (1000)
END_CYC

wndstate( wndfind("text-commands"), 0)
WAITMS (200)
wndstate( wndfind("Firefox-register"), 1)
WAITMS (500)

LCLICK (513, 400) //выбор заголовка в Firefox-register
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)
WAITMS (50)

wndstate( wndfind("Firefox-register"), 0)
WAITMS (200)
wndstate( wndfind("text-commands"), 1)
WAITMS (500)

LCLICK (2, 66) //выбор текста команды в тексте
WAITMS (50)

KEYDOWN (#SHIFT)
WAITMS (50)
FOR($i=0,$i<77)
   KEYPRESS(#DOWN) // нажимаем Вниз 77 раз
   WAITMS (50)
END_CYC
KEYUP (#SHIFT)
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#C)
WAITMS (50)
KEYUP (#C)
WAITMS (50)
KEYUP (#CTRL)
WAITMS (50)

FOR($i=0,$i<13)
   WHEELDOWN (1) // крутим колесико 13 раз
   WAITMS (50)
END_CYC

wndstate( wndfind("text-commands"), 0)
WAITMS (200)
wndstate( wndfind("Firefox-register"), 1)
WAITMS (500)

LCLICK (513, 477) //выбор текста команды в Firefox-register
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)
WAITMS (50)

FOR($i=0,$i<8)
   WHEELDOWN (1) // крутим колесико 8 раз
   WAITMS (50)
END_CYC

LCLICK (230, 690)
WAITMS (3000)

wndstate( wndfind("Firefox-register"), 0)
WAITMS (200)

//------------начало границы циклической записи команд

wndstate( wndfind("text-commands"), 1)
WAITMS (500)

DBLCLICK (2, 70) //выбор команды в тексте
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#C)
WAITMS (50)
KEYUP (#C)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (100)
WHEELDOWN (1)
WAITMS (100)

wndstate( wndfind("text-commands"), 0)
WAITMS (200)
wndstate( wndfind("Firefox-register"), 1)
WAITMS (500)

LCLICK (1237, 145)
WAITMS (2000)
LCLICK (513, 345) //выбор команды в Firefox-register
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)
WAITMS (50)

wndstate( wndfind("Firefox-register"), 0)
WAITMS (200)
wndstate( wndfind("text-commands"), 1)
WAITMS (500)

LCLICK (2, 87) //выбор заголовка в тексте
WAITMS (50)
KEYDOWN (#SHIFT)
WAITMS (50)
KEYDOWN (#DOWN)
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#C)
WAITMS (50)
KEYUP (#C)
WAITMS (50)
KEYUP (#CTRL)

WAITMS (100)
WHEELDOWN (1)
WAITMS (100)

wndstate( wndfind("text-commands"), 0)
WAITMS (200)
wndstate( wndfind("Firefox-register"), 1)
WAITMS (500)

LCLICK (513, 400) //выбор заголовка в Firefox-register
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)
WAITMS (50)

wndstate( wndfind("Firefox-register"), 0)
WAITMS (200)
wndstate( wndfind("text-commands"), 1)
WAITMS (500)

LDOWN (2, 52) //выбор текста команды в тексте
WAITMS (50)
LDOWN (2, 647)
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#C)
WAITMS (50)
KEYUP (#C)
WAITMS (50)
KEYUP (#CTRL)
WAITMS (50)

FOR($i=0,$i<12)
   WHEELDOWN (1) // крутим колесико 12 раз
   WAITMS (50)
END_CYC

wndstate( wndfind("text-commands"), 0)
WAITMS (200)
wndstate( wndfind("Firefox-register"), 1)
WAITMS (500)

LCLICK (513, 477) //выбор текста команды в Firefox-register
WAITMS (50)

KEYDOWN (#CTRL)
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
WAITMS (50)
KEYUP (#CTRL)
WAITMS (50)

FOR($i=0,$i<8)
   WHEELDOWN (1) // крутим колесико 8 раз
   WAITMS (50)
END_CYC

LCLICK (230, 690)
WAITMS (3000)

wndstate( wndfind("Firefox-register"), 0)
WAITMS (200)

//-------------конец границы циклической записи команд

print("окончание работы")

HALT
« Last Edit: June 12, 2019, 11:56:16 AM by Oraven »