Hello,
i use this trigger
The main problem is now. The trigger match only the first highlighted word.
https://ibb.co/ZWsTbgV
What am I doing wrong?
BR
PS: The RegEx trigger works perfectly -> https://ibb.co/MhNP3fH
i use this trigger
<triggers>
<trigger
custom_colour="11"
enabled="y"
keep_evaluating="y"
match="\b(?!(Ab|Abends|AP|D|UT|OT|P|Q|Abenteuerlich|Aber|Abermals|Abhanden|Abher|Abhin|Abseits|Absolut|Absonderlicherweise|Absurderweise|Abzueglich|Achtens|Achteraus|Achtern|Achtmal|Aehnlich|Aeusserst|Ah|Aha|Allda|Alldieweil|Alle|Allenaselang|Allenaslang|Allein|Allemal|Allenfalls|Allenthalben|Allerdings|Allerhoechstens|Allerorten|Allerseits|Allerspaetestens|Alleweg|Alleweil|Allgemach|Allig|Allseits|Allzeit|Allzu|Alsbald|Alsdann|Also|Alt|Alters|Altershalber|Am|Amtshalber|An|Anbei|Andante|Andantino|Anderenfalls|Anderenorts|Anderentags|Andererseits|Andernfalls|Andernorts|Anderntags|Anders|Anderswo|Anderweit|Andrerseits|Aneinander|Anfangs|Angst|Anhand|Anjetzt|Anno|Ansatzweise|Anscheinend|Ansonsten|Anstaendigerweise|Anstandshalber|Anstandslos|Anstatt|Anwesend|Apropos|Arschling|Attraktiv|Auch|Auf|Aufgrund|Aufhin|Aufi|Aufmerksam|Aufseiten|Aufwaerts|Aus|Auseinander|Zwischen|Zwischendurch)\b)([A-Z][A-Za-z0-9~'-]*)" <!-- Simple regex: Words only -->
regexp="y"
repeat="y"
send_to="12"
sequence="100"
>
<send>
if _G.parse_active then
-- Get the entire word (highlighted in orange)
local obj = "%0" -- Use %0 to get the entire word found
Note("Found highlighted object: '" .. obj .. "'")
-- Prüfen, ob ein gültiges Objekt erkannt wurde
if not obj or obj == "" then
Note("No valid highlighted object recognised.")
return
end
-- Initialise the list of examined objects, if not available
if not _G.parsed_objects then
_G.parsed_objects = {}
end
-- Check whether the object has already been inspected
if not _G.parsed_objects[obj] then
_G.parsed_objects[obj] = true -- Mark as investigated
Execute("b " .. obj)
Note("Objekt '" .. obj .. "' is being investigated.")
else
Note("Objekt '" .. obj .. "' has already been analysed.")
end
else
if not _G.warned_about_inactive then
Note("Parsing is not active. Please start with 'reset_b'")
_G.warned_about_inactive = true
end
end
</send>
</trigger>
</triggers>
The main problem is now. The trigger match only the first highlighted word.
https://ibb.co/ZWsTbgV
What am I doing wrong?
BR
PS: The RegEx trigger works perfectly -> https://ibb.co/MhNP3fH