Posts: 726
Threads: 99
Joined: Mar 2018
Hello everyone, the AutoText I defined is multi-line text, but I can't use it. I hope someone can help me, thanks in advance.
Autotext
Autotext2
Trigger
$t
/b/i/c/p3
lin :sub.sub1
#sub Sub1 m
_s=
;line1
;line2
;line3
;line4
paste _s
Posts: 1,337
Threads: 61
Joined: Jul 2006
08-15-2018, 06:02 PM
(This post was last modified: 08-15-2018, 06:06 PM by Kevin.)
the main reason is you have incorrect sub function name
should be
Autotext
Autotext1
Trigger
$t
/b/i/c/p3
lin :sub.Sub1
#sub Sub1 m
_s=
;line1
;line2
;line3
;line4
paste _s
you have sub.sub1 which is incorrect
Posts: 726
Threads: 99
Joined: Mar 2018
08-16-2018, 12:53 AM
(This post was last modified: 08-16-2018, 01:24 AM by win.)
@kevin Thank you for your reminder.
I still have a question. I want to display the comments directly after the AutoText is finished.
The current situation is that, I need to press the enter to appear the comment.
Autotext
Autotext2
Trigger
$t
/b/i/c/p3
lin :sub.Sub1 ;;This is a comment1
lin :sub.Sub2 ;;This is a comment2
#sub Sub1 m
_s=
;line1
;line2
;line3
;line4
paste _s
#sub Sub2 m
_s=
;line5
;line6
;line7
;line8
paste _s
I just looked at the help. Delete the parameter /p3
I can see the comments in the list directly.
QM scripting language is very great
Posts: 726
Threads: 99
Joined: Mar 2018
@Gintaras
Hello, I tried a lot of parameters and couldn't achieve the effect. Can you remind me? thank you very much
The requirements:
When I type lin, it will pop up a comment prompt(This is comment), and when I press Enter, it automatically type.
Autotext Autotext2
Trigger
$t
/b/i/c
lin :sub.Sub1 ;;This is comment
#sub Sub1 m
_s=
;line1
;line2
;line3
;line4
paste _s
Posts: 1,337
Threads: 61
Joined: Jul 2006
08-16-2018, 02:46 AM
(This post was last modified: 08-16-2018, 02:54 AM by Kevin.)
Autotext
Autotext
Trigger
$t /NOTEPAD
/b/i/c/m
lin :sub.Sub1 ;;This is comment
#sub Sub1 m
_s=
;line1
;line2
;line3
;line4
paste _s
how to set this option
see attachment below
i set this whole thing to only work in notepad
now this works as well
Autotext
Autotext
Trigger
$t /NOTEPAD
/b/i/c/m
lin :sub.Sub1 ;;This is a comment1
lin :sub.Sub2 ;;This is a comment2
#sub Sub1 m
_s=
;line1
;line2
;line3
;line4
paste _s
#sub Sub2 m
_s=
;line5
;line6
;line7
;line8
paste _s
Posts: 726
Threads: 99
Joined: Mar 2018
Thank you very much for reminding