Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Menu icons
#13
I usually use sel:

Macro Macro2916
Code:
Copy      Help
int i=ShowMenu("1 macro1[]2 macro2")
sel i
,case 0 ret
,case 1 out "macro1"
,case 2 out "macro2"

Or:

Macro Macro2916
Code:
Copy      Help
str m=
;1 macro1
;2 macro2

int i=ShowMenu(m)
if(i=0) ret
str s.getl(m i-1); s.gett(s 1)
mac s


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)