This isn't specifically about macro programming, but I'm not sure where else to ask.
I have a bunch of phrases that are currently output the content when you type the autotext. However, my boss wants to be able to also be able to output the autotext by typing the content.
For example, we have a phrase called "as needed". The content is "as needed" and the autotext is "prn". My boss wants the option to either type "prn" to output "as needed" or type "as needed" to output "prn".
Currently the only way I can see how to do this would be to create additional phrases where the autotext and content are swapped. However, I'm wondering if it can be done using only the existing phrases.
Thanks!
I've attached a sample PXP file so you can see what I'm working with.
Question about autotexts
-
- Posts: 5
- Joined: 04 Dec 18, 03:22
Question about autotexts
You do not have the required permissions to view the files attached to this post.
-
- Posts: 2693
- Joined: 10 Feb 06, 22:23
If you want to do it in one phrase you could set the autotext to: prn|as needed
and the phrase content to: {#check -text {#autotext} -case == prn -output as needed -else prn}
and the phrase content to: {#check -text {#autotext} -case == prn -output as needed -else prn}
-
- PhraseExpress Expert
- Posts: 914
- Joined: 27 Feb 08, 15:07
@vertigoelectric
Setting up SmartComplete for all phrases in the directory...
Peter Stotz
Windows 10 - PhraseExpress v14.0.145
Another way could be:Technical Support wrote:
If you want to do it in one phrase ...
Setting up SmartComplete for all phrases in the directory...
Peter Stotz
Windows 10 - PhraseExpress v14.0.145