Hello UOPilot Users.
I've always used the function below to get the colors of an overlaid window and work in another window, but I don't know if the windows updated or something, and the functions below no longer work with the overlaid window, if I put the window active it works, but overlaid no longer works
Can anyone help?
windowgetcolor is a window overlay
variable h is a work send F8
Example CODE
Код
--lua
local arr = {
['hel'] = {1822, 150, 6184542},
['heltwo'] = {1622, 111, 5143420}
}
local windowgetcolor = 328852
local h = findwindow("WindowWork")
while true do
if color(arr.hel[1], arr.hel[2]) == arr.hel[3] and color(arr.heltwo[1], arr.heltwo[2]) == arr.heltwo[3] then
workwindow (h [1] [1])
send ("F8", 100)
workwindow (windowgetcolor)
end
end