Цитата(DarkMaster @ 14.1.2020, 22:45)
i wrote it on lua syntax.
Код
--lua
-- for lua (yes, im captain)
local pointer_1 = readmem (0x012A6CF4, "D")
local pointer_2 = readmem (pointer_1 + 0x3B8, "D")
local pointer_3 = readmem (pointer_2 + 0x10C, "D")
local pointer_4 = readmem (pointer_3 + 0x4, "D")
local pointer_5 = readmem (pointer_4 + 0x24, "D")
local pointer_6 = readmem (pointer_5 + 0xC0, "D")
-- directly you dont need next string here
-- local result = readmem (pointer_6 +0xB0, "D")
while readmem (pointer_6 +0xB0, "D") > 0 do
send("{F3}")
wait(1000)
end
It works perfectly, but I still have a question. I wrote a script with findimage in - - lua, it works normally if the window is in the foreground, but when creating a second desktop in w10 and running uopilot, the image is not found. How could I solve this?
Code
--lua
Local startX, startY, endX, endY = 0,0,1920,1080
Local path = [["C:\uopilot\imagens\ok.bmp"]]
Local arr, a = findimage (startX, startY, endX, endY, (path), 2)
---Script
While True do - - - loop
Hint (a)
If arr then
HIT ("Imagem encontrada nas coordenadas X=".. arr [1] [1].." Y=".. arr [1] [2])
Kleft (arr[1][1], arr[1][2])
End
End