Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
passing variables to run after macro
#1
When making an exe, how do you pass variables?

For example, sending the string value "Test" to RunAfter function:

on_after RunAfter "Test"

Also while on the subject, is there anyway to format the BEGIN/END PROJECT so variables could be inserted?
Kind of like how the dialog as a variable works.
----
str Test="Information to be sent to RunAfter function"
str PROJECT=
F
BEGIN PROJECT
main_function Function1
exe_file $my qm$\Function1.exe
icon <default>
manifest $qm$\default.exe.manifest
res
on_before
on_after RunAfter {Test}
...
#2
QM cannot pass arguments to the function. Cannot use variables in BEGIN PROJECT.
If multiple exe projects use same on_after function FuncA with different value, let they use different on_after functions that call FuncA and pass different value.
#3
Thanks. Just hoping to make a one stop shop on the Run After...


Forum Jump:


Users browsing this thread: 1 Guest(s)