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.
-
aliex
- Posts: 12
- Joined: Thu Feb 10, 2011 6:54 am
#1
Post
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.
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#2
Post
by lisa »
try adding 0x at the start of the address, it means the number is in hex.
--=== Edited ===--
Removed the ""
Thanks admin =)
-
Administrator
- Site Admin
- Posts: 5342
- Joined: Sat Jan 05, 2008 4:21 pm
#3
Post
by Administrator »
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
#4
Post
by Louro »
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
#5
Post
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.
