Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Autotext - new item to insert existing autotext item - possible?
#1
Hi

Is there a way to have an autotext entry reference an existing entry?


For example consider:

    myAge` :' "40"
    myDetails` :' "Hi I am Geoff and I am <myAge> years old."


Output for typing myDetails - Hi I am Geoff and I am 40 years old.

[I use a backtick as a trigger key.] Is this possible with Autotext lists, or must I program a separate macro?

Thanks for reading!

Andy
#2
Can be accomplished like so

Autotext AutotextExample
Trigger $t     Help - how to add the trigger to the macro
Code:
Copy      Help
/b/i/c
myAge` :"40"
myDetails` :sub.Sub1

#sub Sub1 m
str s.getmacro(getopt(itemname 6))
findrx(s "myAge` :''(.+?)''" 0 1 _s 1)
key F"Hi I am Geoff and I am {_s} years old."
#3
Thanks so much Kevin. This product never fails to impress.


Forum Jump:


Users browsing this thread: 1 Guest(s)