02-21-2012, 12:32 PM
In exe, str.setmacro is not useful and therefore not supported. In your case, setmacro is not the best way. Use variables. Like in my previous example, or like
str variable="file.bmp"
if(scan(variable ...
Place #exe... anywhere. If the function is added to exe, these bmp macros also will be added.
Example with 3 bmp macros (all will be added to exe):
Example with 3 bmp files (all will be added to exe if "Auto add files" checked):
Run to test how works. At first create these macros or files.
str variable="file.bmp"
if(scan(variable ...
Place #exe... anywhere. If the function is added to exe, these bmp macros also will be added.
Example with 3 bmp macros (all will be added to exe):
;/exe
#exe addtextof "item1.bmp"
#exe addtextof "item2.bmp"
#exe addtextof "item3.bmp"
int i
for i 1 4
,out F"macro:item{i}.bmp"
,if(scan(F"macro:item{i}.bmp" 0 0 1))
,,out "found"Example with 3 bmp files (all will be added to exe if "Auto add files" checked):
;/exe
str allFiles=
F
;:1 item1.bmp
;:2 item2.bmp
;:3 item3.bmp
int i
for i 1 4
,out F":{i} item{i}.bmp"
,if(scan(F":{i} item{i}.bmp" 0 0 1))
,,out "found"Run to test how works. At first create these macros or files.
