How To Trigger a Function ?

You can talk about VB programming here

How To Trigger a Function ?

Postby UAE KILLER » Sat Apr 11, 2009 11:35 am


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
"Share What You Can To Benefit The Others"
"Hope not to be like Pharaohs, they hid their knowledge & it died with them"
UAE KILLER
imFiles Newbie
imFiles Newbie
 
Posts: 7
Joined: Fri Feb 20, 2009 5:08 am

Re: How To Trigger a Function ?

Postby Chike » Sat Apr 11, 2009 11:42 am

Use one that doesn't instead
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm

Re: How To Trigger a Function ?

Postby UAE KILLER » Sat Apr 11, 2009 11:49 am

I just want to know how they do it ?
"Share What You Can To Benefit The Others"
"Hope not to be like Pharaohs, they hid their knowledge & it died with them"
UAE KILLER
imFiles Newbie
imFiles Newbie
 
Posts: 7
Joined: Fri Feb 20, 2009 5:08 am

Re: How To Trigger a Function ?

Postby Chike » Sat Apr 11, 2009 12:13 pm

Oh, there's plenty of examples around, use the search.
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm

Re: How To Trigger a Function ?

Postby Departure » Sat Apr 11, 2009 12:20 pm

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
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Re: How To Trigger a Function ?

Postby UAE KILLER » Sat Apr 11, 2009 1:16 pm

Thanks Departure for the good direction.

I will try that.

Thanks
"Share What You Can To Benefit The Others"
"Hope not to be like Pharaohs, they hid their knowledge & it died with them"
UAE KILLER
imFiles Newbie
imFiles Newbie
 
Posts: 7
Joined: Fri Feb 20, 2009 5:08 am


Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests