Kibor Bot Autoclicker » Kibor - Integrated development environment for bots » About Kibor » Version 5.51 of the #define and #definefile Directives - Macros and Replace

Страниц (1): [1]
 

1. Kibor - 02 Февраля, 2019 - 03:51:35 - перейти к сообщению
#define and #definefile directives added
The purpose is to find and replace the specified macros with the specified code.
#define - Used to specify the macro and code directly in the code itself. Replacement occurs at the preprocessor level before processing the script.
#definefile - Used to connect a file with a list of macros.
The file is not copied into the code, but the found matches are read and replaced without copying the list into the script.

Example:
All WM_COMMAND constants in the code will be replaced by the specified number 273
CODE:
#define WM_COMMAND 273



CODE:
#define frue 1
int a=1;
if (a==frue) messagebox("a==frue");
messagebox(frue);


Spaces in the macro and replace string are not allowed.
Syntax:

CODE:
#define (space) Macro (space) Substitution Characters


===============================================

#definefile connects the file with a list of macros.
The list is as follows:

CODE:
frue 1
WM_COMMAND 273
.....


#define is not specified in the file.

Spaces in the macro and replace string are not allowed.
Syntax:

CODE:
#definefile "C:\file_macros.txt"


File resolution is not important.

===============================================

At the moment, an internal macro list is saved in Cybour until the list file has been prepared. Then this file will replace it, which will be supplied with the program.

===============================================

If there are duplicate macros, they are not listed again in the list, but their value changes to the last one.

Powered by ExBB FM 1.0 Final