同人星球BBS -> 游戏修改 -> [CE教程] Script engine 中的命令 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

修改众 08-08-21 14:15

从CE帮助文件中复制出来的。
会C语言才能看懂。我现在还看不懂。

安装好CE后,会找到 Cheat Engine.hlp
这个就是CE的帮助文件。详细介绍了CE的所有功能。
不过全都是英文,所以.....



Cheat engine also has a script engine in which you can execute simple c-scripts.
You can run thos c-scripts inside CE, but you can also inject them into the target process and let it execute there. The scripts have access to the real memory.
Also, when running in the contectx of Cheat Engine using the normal execute button the script engine provides you with several extra commands that are not available when using the injected form.
They are:



void ce_showmessage(char* message);
Will popup a messagebox with the specified message
Usefull for showing the result of an operation.
e.g:
char result[100];
int x=123;
x=x+6;
sprintf(result,"123+6 = %d",x);
ce_showmessage(result);

int ce_ChangeRegistersAtAddress(unsigned long addresstonbreakat, void *changeregstructure);
This will use ce's "Change register at address" feature.
addresstonbreakat is the address to place the break at and changeregstructure is a pointer to the changereg structure.

Look at the plugin-system help or the changeregtest.CEC  example provided for the structure.

int ce_AutoAssemble(char *script);
Will autoassemble the script provided in script.
will return 0 if failure

int ce_Assembler(unsigned int address, char *instruction, unsigned char *outputbuffer, int maxbuffersize, int *numberofbytes);
Will assemble one specific instruction and return the bytes to a structure you've allocated


int ce_Disassembler(unsigned int address, char *outputstring, int maxsizeofstring);
Will disassemble a specific address of the currently selected process and fill it in outputstring.

int ce_InjectDLL(char *pathtodll, char *optionalfunction);
Will inject a dll and calls a function of that dll (No parameters) Optionalfunction can be 0

unsigned int ce_GetAddressFromPointer(unsigned int baseaddress, int offsetcount, unsigned int *offsetlist);
Will convert an address with offsets to the final address.
offsetcount is the number of offsets in the list (offsetlist)

int ce_GetSelectedProcessHandle(void);
Will return the current processhandle;

int ce_ReadProcessMemory(unsigned int processhandle, void *baseaddress, void *buffer, unsigned long bytestoread, void *numberofbytesread);
Will use the current ReadProcessMemory currently used by Cheat Engine

int ce_WriteProcessMemory(unsigned int processhandle, void *baseaddress, void *buffer, unsigned long bytestowrite, void *numberofbyteswritten);
Will use the current WriteProcessMemory currently used by Cheat Engine.


查看完整版本: [-- [CE教程] Script engine 中的命令 --] [-- top --]

Powered by PHPWind v5.3 Code © 2003-05 PHPWind
Time 0.071556 second(s),query:3 Gzip enabled

You can contact us