Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Popup menu for Autotext-items?
#4
could create autotext entry infot that runs a sub function and processes autotext file and shows a dynamic menu consisting of infotext,informore, and infolist that will act just like an autotext list.
try this

Autotext Autotext
Trigger $t     Help - how to add the trigger to the macro
Code:
Copy      Help
/b/i/c
infot :sub.Sub2
infotext :"Some text"
infomore :"More text"
infolist :"Cat,Dog,Horse,House,Car"

#sub Sub2
str d s.getmacro(getopt(itemname 6))
ARRAY(str) a
findrx(s "(info.+ ):(''.+'')" 0 4 a)
for _i 0 a.len
,d.formata("%i %s-%s :%s[]" _i+1 a[1 _i] a[2 _i] a[2 _i])
d.trim
d-" /pos text /noicons[]"
DynamicMenu(d "" 1)


Messages In This Thread
Popup menu for Autotext-items? - by MBaas - 07-14-2021, 02:22 PM
RE: Popup menu for Autotext-items? - by Gintaras - 07-14-2021, 04:06 PM
RE: Popup menu for Autotext-items? - by MBaas - 07-15-2021, 07:36 AM
RE: Popup menu for Autotext-items? - by Kevin - 07-20-2021, 03:05 AM
RE: Popup menu for Autotext-items? - by MBaas - 07-20-2021, 09:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)