Здравствуйте, гость ( Вход | Регистрация )

> findimage WORKS, but I need some HELP, Random click inside the found image
wlaient
сообщение 28.4.2024, 1:51
Сообщение #1


*

Registred
Сообщений: 5
Регистрация: 21.3.2024
Группа: Пользователи
Наличность: 61
Пользователь №: 20.738
Возраст: 25



I have this script that works

-------------------------------------------------------
set $a FindImage(982, 0 1364, 328 (C:\macro\v1.png) %crds 2 100 1))
move %arr [1 1] %arr [1 2]
End_script
end_if
-------------------------------------------------------

can be
move %crds [ 1 1 ] %crds [ 1 2 ]
or
move %crds [ 1 3 ] %crds [ 1 4 ]

-------------------------------------------------------

however, the cursor is always moved to a fixed coordinate x or y

-------------------------------------------------------
I have this script that works too:

set #x0 1326
set #y0 634
set #x1 1348
set #y1 644
set #x #x0 + random(#x1 - #x0)
set #y #y0 + random(#y1 - #y0)
move #x #y

In the script above, the cursor is randomly moved to the pre-established X Y coordinates
-------------------------------------------------------

How do I deploy these 2 scripts? How do I make %crds move the cursor to a random coordinate within the found image?

-------------------------------------------------------


Пользователь в офлайнеDelete PostОтправить личное сообщение
Вернуться в начало страницы
+Ответить с цитированием данного сообщения

Сообщений в этой теме


Ответить в эту темуОткрыть новую тему
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 

- Текстовая версия | Версия для КПК Сейчас: 19.5.2024, 8:15
Designed by Nickostyle