Code: Select all
printf("fff\n");
setStartKey(key.VK_DELETE);
setStopKey(key.VK_END);
function main()
myProc = openProcess( findProcess("fff") );
local mouseXPat = string.char(0xA1, 0xFF, 0xFF, 0xFF, 0xFF, 0x8B, 0x0D, 0xFF, 0xFF, 0xFF, 0xFF,0x8B, 0x15, 0xFF, 0xFF, 0xFF, 0xFF, 0xA3);
local mouseXMask = "x????xx????xx????x";
local mouseXAdd = findPatternInProcess(myProc, mouseXPat, mouseXMask, 0x400000, 0x40000);
if( mouseXAdd == 0 ) then
printf("Failed to find the pattern in the process.\n");
end
local mouseYAdd = (mouseXAdd + 0x04);
mouseX = memoryReadInt(myProc, mouseXAdd);
mouseY = memoryReadInt(myProc, mouseYAdd);
printf("mouseX Address: 0x%X\n", mouseXAdd);
printf("mouseY Address: 0x%X\n", mouseYAdd);
printf("mouseX Value: %d\n", mouseX);
printf("mouseY Value: %d\n", mouseY);
running = false;
while(running) do
--curX = memoryReadInt(myProc, 0x02C85944); --My current X position
--curY = memoryReadInt(myProc, 0x0157D78C); --My current Y position
end
end
startMacro(main);
Code: Select all
Started.
mouseX Address: 0x419906
mouseY Address: 0x41990A
mouseX Value: 109435056
mouseY Value: -659288693
Stopping execution.