Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AutoText is multi-line but can't use
#1
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. Huh


Autotext Autotext2
Trigger $t     Help - how to add the trigger to the macro
Code:
Copy      Help
/b/i/c/p3
lin :sub.sub1

#sub Sub1 m
_s=
;line1
;line2
;line3
;line4
paste _s
#2
the main reason is you have incorrect sub function name
should be

Autotext Autotext1
Trigger $t     Help - how to add the trigger to the macro
Code:
Copy      Help
/b/i/c/p3
lin :sub.Sub1

#sub Sub1 m
_s=
;line1
;line2
;line3
;line4
paste _s
you have sub.sub1 which is incorrect
#3
@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     Help - how to add the trigger to the macro
Code:
Copy      Help
/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.  Smile

QM scripting language is very great  Tongue
#4
@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     Help - how to add the trigger to the macro
Code:
Copy      Help
/b/i/c
lin :sub.Sub1 ;;This is comment

#sub Sub1 m
_s=
;line1
;line2
;line3
;line4
paste _s
#5
Autotext Autotext
Trigger $t /NOTEPAD     Help - how to add the trigger to the macro
Code:
Copy      Help
/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     Help - how to add the trigger to the macro
Code:
Copy      Help
/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
#6
Thank you very much for reminding  Heart


Forum Jump:


Users browsing this thread: 2 Guest(s)