Помощь - Поиск - Пользователи - Календарь
Полная версия: I have problem running the same Script on other PC
UoKit.com Форумы > Кликер > UO Pilot
mandixX
Hey guys so I'm running this script on my PC on win 10:
Код
set #wind findwindow (Talisman)
set workwindow #wind

set #startX 145
set #startY 396
set #endX 628
set #endY 604
set $path "E:\Pilot\Pilot BMP\"
set %image [1] gem_bag_3
set %image [2] example1
set %image [3] example2
set %image [4] example3
set %image [5] example4
set %image [6] example5
set %image [7] example6
set #size size(%image)
hint 2 #size
:metka
for #i 1 #size 1
    set #e findimage (#startX #startY #endX #endY ($path%image[1].bmp) %arr 2)
    if  #e > 0
        wait 500
        kleft %arr[1 1] %arr[1 2]
        wait 500
        kleft 138, 622 abs
        wait 500
        left 626, 366 abs
    end_if
end_for
goto metka


And its working perfect but when I try to run it on my laptop its not .. I even took the pictures again and changed the coordinates but it doesn't work. Anyone have any idea why ?

I tried reinstall windows again ( not working ) tried run as Administrator too..
neves
I don't think someone will start debugging your code.
I suggest you to give shorter example with few images + information about what exact happens when you run the code(erros,logs etc).
mandixX
I updated my first message smile.gif

As far as I see while im running this script on my laptop it just doesn't seems to find the image in the area that i specify .( It doesn't go in the IF statement)
cirus
Цитата
set #e findimage (#startX #startY #endX #endY ($path%image[1].bmp) %arr 2)
log #e // what returns?
if #e > 0

Try specifying a large search area.
Цитата
set #e findimage (0 0 1920 1080 ($path%image[1].bmp) %arr 2)

Это текстовая версия — только основной контент. Для просмотра полной версии этой страницы, пожалуйста, нажмите сюда.
Русская версия Invision Power Board © 2001-2024 Invision Power Services, Inc.