{"customEntities":{"script":[["58",{"value":{"mdTime":1724116606183,"srcCode":"let inputElem = document.querySelector('[role=textbox]') ;\ninputElem.addEventListener('input', async evt =>{\n\tawait ACtl.sleep(1000)\n\tACtl.execAction('send TEST')\n})"}}]]},"sections":[{"id":3,"name":"EMAIL REPLIES"}],"trigActList":[["50",{"actions":[{"sequence":[{"action":"runScript","params":{"scriptId":"script:58"}}],"targets":"eventTabs"}],"sctnId":"3","title":"Waits for a text input be entered, and then triggers the action part","triggers":[{"combins":[{"block":1,"eventId":2061,"wildcard":1}],"preconds":{"evtUrl":[{"negate":0,"part":0,"type":"starts","value":"
https://mail.google.com/mail/"}],"urlTests":[{"negate":0,"part":0,"type":"starts","value":"
https://mail.google.com/mail/"}]}}]}]]}
But that will trigger the needed action for any entered values, not for specific keyworkds only. I need the actions get
triggered according to what exact text value was entered, so the needed template will be sent, with a determined action.
Besides, the trigering part seems to be working kind of erraticaly, since while sometimes it will work,
others it will do nothing at all, till I "force" a tabs' "focused" or "unfocused" event. I also tried with the
"activated" and "deactivated" events, but results weree the same. Ideally, the action part should be always "waiting"
for an entered value into that specific text area, disregarding the tab/window focus state, or any other conditions, so
whatever be the time I put something on that text field, the needed actions get executed. Otherwise, the action
will be executed only right after a "focused" or any other kind of event was detected, which seems to be an issue.