Search code examples
javascriptimacros

Dont work text insertion In Imacros (slack.com)


I want to put "hello" in message field e.g. https://r-data-team.slack.com/messages/D9V9D91JN/

I write in js file this, but nothing happens

iimPlayCode('TAG SELECTOR="#msg_input>.ql-editor>p" CONTENT=hello')

"#msg_input>.ql-editor>p " is defined, problem in TAG


Solution

  • No magic so far, just the Event mode used:

    iimPlayCode (
        'EVENT TYPE=CLICK SELECTOR="#msg_input>DIV" BUTTON=0' + "\n" +
        'EVENTS TYPE=KEYPRESS SELECTOR="#msg_input>DIV" CHARS="hello"' + "\n"
    );