Read String from Memory - Help needed!

Discuss, ask for help, share ideas, give suggestions, read tutorials, and tell us about bugs you have found with MicroMacro in here.

Do not post RoM-Bot stuff here. There is a subforum for that.
Forum rules
This is a sub-forum for things specific to MicroMacro.

This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
Post Reply
Message
Author
aliex
Posts: 12
Joined: Thu Feb 10, 2011 6:54 am

Read String from Memory - Help needed!

#1 Post by aliex » Sun Jun 03, 2012 7:23 am

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.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Read String from Memory - Help needed!

#2 Post by lisa » Sun Jun 03, 2012 10:14 am

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 =)
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Read String from Memory - Help needed!

#3 Post by Administrator » Sun Jun 03, 2012 12:45 pm

That address should also not be a string. Don't enclose it in quotes.

Louro
Posts: 10
Joined: Fri May 18, 2012 11:55 am

Re: Read String from Memory - Help needed!

#4 Post by Louro » Mon Jun 04, 2012 2:29 pm

wow
It's that to count the numbers of quest mobs killed in order to do something when task is completed?

aliex
Posts: 12
Joined: Thu Feb 10, 2011 6:54 am

Re: Read String from Memory - Help needed!

#5 Post by aliex » Thu Jun 07, 2012 8:57 am

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. :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 28 guests