Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy content's of one macro to the other and compile to exe
#6
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):
Code:
Copy      Help
;/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):
Code:
Copy      Help
;/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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)