Page 1 of 1

Read String from Memory - Help needed!

Posted: Sun Jun 03, 2012 7:23 am
by aliex
Hey Guys, i need some help reading a String from Memory. I'm getting several Errors which i dont know to solve.

This is what i got:

Code: Select all

mobcount_addr	= "270A6880";

function main()
	win = findWindow("FiestaOnline");
	hdc = openDC( win );
	proc = openProcess( findProcess("FiestaOnline") );
	mobcount = memoryReadString( proc, mobcount_addr);
	printf("%s]n", mobcount);
end

startMacro(main);
It should simply print out the string from memory. I checked the memory-address with cheat-engine.

Re: Read String from Memory - Help needed!

Posted: Sun Jun 03, 2012 10:14 am
by lisa
try adding 0x at the start of the address, it means the number is in hex.

Code: Select all

mobcount_addr   = 0x270A6880
--=== Edited ===--
Removed the ""
Thanks admin =)

Re: Read String from Memory - Help needed!

Posted: Sun Jun 03, 2012 12:45 pm
by Administrator
That address should also not be a string. Don't enclose it in quotes.

Re: Read String from Memory - Help needed!

Posted: Mon Jun 04, 2012 2:29 pm
by Louro
wow
It's that to count the numbers of quest mobs killed in order to do something when task is completed?

Re: Read String from Memory - Help needed!

Posted: Thu Jun 07, 2012 8:57 am
by aliex
Louro wrote:wow
It's that to count the numbers of quest mobs killed in order to do something when task is completed?
yep. thats the plan. :)