|
Post by d354n on Jan 30, 2017 14:38:53 GMT
Hi, can you help me?
i get error message running this function, "Runtime error: java.lang.ArrayIndexOutOfBoundsException: length=1; index=2 stack traceback: [C]: in function 'getColor' ?: in function 'getColor' in my long script, but when i create new file and run just the function, i get no error.
error in line : r1a, g1a, b1a = getColor(Pattern(vName))
function IsGetColorRGB(vName, vR, vG, vB) vName = "refresh.png" if exists(Pattern(vName)) then r1a, g1a, b1a = getColor(Pattern(vName)) else return false end if (r1a == vR) and (g1a == vG) and (b1a == vB) then return true end end
thanks
|
|
|
Post by AnkuLua on Jan 30, 2017 15:19:45 GMT
Did you ever use usePreviousSnap(true) in the long script?
|
|
|
Post by d354n on Jan 30, 2017 15:48:32 GMT
yes i use it is it because of that? should i not use it?
|
|
|
Post by d354n on Jan 30, 2017 16:56:30 GMT
|
|
|
Post by d354n on Jan 30, 2017 16:57:04 GMT
and fast response too ty
|
|