fenix01/cheatengine-library

How can I give value to registersymbol address?

sesey opened this issue · 1 comments

sesey commented

Hi,
How can I assign value to registersymbol from library?
I tried as below but failed.
I don't want to do value assignment with script.

Script:

alloc(testad,8)
registersymbol(testad)

C# code:

lib.iAddAddressManually("testad", TVariableType.vtDword);
lib.iSetValue(0,"100",false);

Hi sesey,

I'm note sure it is possible to assign a value to a register symbols without using script. But if you need to dynamically assign a value maybe you can forge the script manually in your code.
Something like this :

var
myScript: string;
begin
myScript := "
alloc(testad,8)
registersymbol(testad)
mov testad, %d"
myScript := format(myScript,[1]);
end;