Skip to content

How To Trigger a Function ?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #187362
    UAE KILLER
    Member

    Hola

    How to trigger a function to send a text to a chat room ?

    For example,

    When I run imtalker‘s program or TWiZA‘s program, it sends a program’s name & a link automatically.

    How to do that ?
    What’s the code & Where to put it ?

    Gracias Señores

    #187367
    Chike
    Member

    Use one that doesn’t instead

    #187366
    UAE KILLER
    Member

    I just want to know how they do it ?

    #187365
    Chike
    Member

    Oh, there’s plenty of examples around, use the search.

    #187364
    Departure
    Member

    there are lots of examples on this forum as chike said, but the basic logic behind it is that first you get the last line of text recived in the room chat window and if that line of text has your defined trigger(for example !MyTrigger) then call the function or procedure to send a responce(usually as text or link in your example). So to sum it up you need 3 function… 1 to get the last line of text, 2 to check if the line contains your trigger, 3 send text back to messenger.

    Hope that helps you understand how they do it, look at the example codes in the forum for more details on to make these functions

    #187363
    UAE KILLER
    Member

    Thanks Departure for the good direction.

    I will try that.

    Thanks

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.