Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AutoText in specific window
#1
I would like to know the equivalent code of the following QM code in LA.
This involves a lot of things, and as a sample, it would be very helpful for those who already have a grasp of QM.
Thank you in advance

Feature description:
In the notepad2(https://www.flos-freeware.ch/notepad2.html) window, using automatic text pasting strings and executing commands, manage these entries at a glance, like in QM

Autotext AT_NP
Trigger $t //FF_NP     Help - how to add the trigger to the macro
 
Code:
Copy      Help
/b/i/c/m
at :sub.Sub1 ;;AutoText 1
at :sub.Sub2 ;;AutoText 2
run :sub.Sub3 ;;run code 1

#sub Sub1 m
paste "AutoText 1"

#sub Sub2 m
paste "AutoText 2"

#sub Sub3 m
run "calc"
2
mac "Func1" "" "hello World"

Function FF_NP
 
Code:
Copy      Help
;/
function# iid FILTER&f

if(wintest(f.hwnd "" "Notepad*")) ret iid
ret -2

Function Func1
Code:
Copy      Help
function ~s
mes s


Attached Files
.qml   AT_NP.qml (Size: 3 KB / Downloads: 13)
#2
Examples in file "Autotext triggers".
The up-to-date examples are here: menu File > New > Default > Triggers and toolbars

See also: https://www.libreautomate.com/forum/show...p?tid=7646


Forum Jump:


Users browsing this thread: 1 Guest(s)