What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » How to send a hyperlink text to other contacts?

How to send a hyperlink text to other contacts?
Author: Message:
carlz
New Member
*


Posts: 13
Joined: Dec 2004
O.P. How to send a hyperlink text to other contacts?
Hello, everyone

Now I send text to other contacts using following code in my plugin program:

for(int i=0;i<nLen;i++)
::SendMessage(hChatWnd,WM_CHAR,lpChatMsg[i],0);

But how to send a hyperlink text to others?
For example, I need to send such text "you can click here to do something", when contact click "here", a "www.microsoft.com" IE page will be opened?

Could anyone know this and tell me? thanks a lot?
01-10-2005 01:08 AM
Profile E-Mail PM Find Quote Report
Ash_
Senior Member
****

Avatar

Posts: 638
Reputation: 31
35 / Male / –
Joined: Aug 2004
RE: How to send a hyperlink text to other contacts?
quote:
Originally posted by carlz
for(int i=0;i<nLen;i++)
::SendMessage(hChatWnd,WM_CHAR,lpChatMsg[i],0);


dodgy for. are you planning to flood someone with links :dodgy: :P

anyway i dont think that its possible to create hyperlinks on the MSN form. the area where the text is writen on is (I think :P) and XML Sheet.

so unless you can get hyperlinks working in XML you wont be able to on the IM window. (ive never looked at XML so i dont know if you can or cant make hyperlinks in it :P )

and even if you could create hyperlinks in XML i think the MSN would still set them as the code. which is why Plugins like Stuffplug-NG which have the option for clickable urls in names. both sides would need the plugin because (again i think :P) Stuffplug edits the nick when text is recieved.

bah im probly way off but thats my 2 cents.
[Image: jeansiger5.jpg]
01-10-2005 11:23 AM
Profile PM Find Quote Report
MoRiA
Full Member
***

Avatar
Web2Messenger Creator

Posts: 268
Reputation: 15
37 / Male / –
Joined: Nov 2002
RE: How to send a hyperlink text to other contacts?
I think you're pretty much spot on there...
01-10-2005 12:12 PM
Profile E-Mail PM Web Find Quote Report
Ash_
Senior Member
****

Avatar

Posts: 638
Reputation: 31
35 / Male / –
Joined: Aug 2004
RE: RE: How to send a hyperlink text to other contacts?
quote:
Originally posted by MoRiA
I think you're pretty much spot on there...


w00t theres hope for me yet:P

anyway to make this plugin work you need to know your stuff about programming. good luck.
[Image: jeansiger5.jpg]
01-10-2005 12:20 PM
Profile PM Find Quote Report
riahc4
Veteran Member
*****


Posts: 1073
Reputation: -18
– / Male / Flag
Joined: Aug 2004
Status: Away
RE: How to send a hyperlink text to other contacts?
quote:
Originally posted by carlz
Hello, everyone

Now I send text to other contacts using following code in my plugin program:

for(int i=0;i<nLen;i++)
::SendMessage(hChatWnd,WM_CHAR,lpChatMsg[i],0);

But how to send a hyperlink text to others?
For example, I need to send such text "you can click here to do something", when contact click "here", a "www.microsoft.com" IE page will be opened?

Could anyone know this and tell me? thanks a lot?

This would mean your plugin sort of makes the IM window/convo HTML with several commands possible which i have been told that it couldnt be done....


Then again i might have misunderstood you..
01-10-2005 07:21 PM
Profile PM Find Quote Report
Millenium_edition
Veteran Member
*****

Avatar

Posts: 1787
Reputation: 57
Joined: Apr 2003
RE: How to send a hyperlink text to other contacts?
i doubt that's possible. unless you want MSN to become exploited like MSN, of course.
01-10-2005 07:31 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: How to send a hyperlink text to other contacts?
quote:
Originally posted by Ash_
w00t theres hope for me yet
not realy :p ;)

quote:
Originally posted by Ash_
which is why Plugins like Stuffplug-NG which have the option for clickable urls in names. both sides would need the plugin because (again i think :P) Stuffplug edits the nick when text is recieved.
The clickable urls in names is nothing more then a patch to make msn messenger handle texturls in names as links, just the same as it handles texturls as links in a normal conversation.

This works only localy, and both parties certainly don't need the plugin and/or patch in order to let this work (as it is only localy).

---

But to come back to the topposters question...

It is a very very big leap into letting MSN Messenger handle text like:
  "hello, go to http://blahblah.com/ to install the program"
like this (how it is currently):
  "hello, go to http://blahblah.com/ to install the program"

compared to text like this:
  "hello, go to here to install the program"
shown up like this:
  "hello, go to here to install the program"

That last one is very difficult todo and will not be possible by a simple patch. It "could" be possible with a plugin though, but for this to let work, both parties will need the plugin. As the plugin must alter the text (add some tags or special symbols to it) and on the other side, the same plugin must interpret this altered text. Just like Messenger Plus! does with its colors.

This also means, that the other party will have something very strange if he/she doesn't have this plugin.

eg:
you 'll need to write something like
  "hello, go to [url=http://blahblah.com/]here[/url] to install the program"
and the other party with the plugin will see
  "hello, go to here to install the program"
and the other party without the plugin will see
  "hello, go to [url=http://blahblah.com/]here[/url] to install the program"



in short: don't hope too much for something solid to do this. Anyways, why not just type the URL fully? It would be even more work to make it like you want (which will not be clickable/viewed nicely for everybody) then to simply type the full URL (which will be clickable for everybody).

thus:
quote:
Originally posted by carlz
For example, I need to send such text "you can click here to do something", when contact click "here", a "www.microsoft.com" IE page will be opened?
Why not:
"you can click the following link to do something: http://www.microsoft.com/" ???

This will not only be viewable in a clear way to everybody, it also enables your contacts to simply copy/paste the url if they want (which will not be possible in the way you want it)

This post was edited on 01-11-2005 at 12:15 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-11-2005 12:11 AM
Profile PM Find Quote Report
Ash_
Senior Member
****

Avatar

Posts: 638
Reputation: 31
35 / Male / –
Joined: Aug 2004
RE: RE: How to send a hyperlink text to other contacts?
quote:
Originally posted by CookieRevised
quote:
Originally posted by Ash_
w00t theres hope for me yet
not realy :p ;)



damn! you caught me cookie. nothing can get past you :P lol

quote:
Originally posted by CookieRevised
That last one is very difficult todo and will not be possible by a simple patch. It "could" be possible with a plugin though, but for this to let work, both parties will need the plugin. As the plugin must alter the text (add some tags or special symbols to it) and on the other side, the same plugin must interpret this altered text. Just like Messenger Plus! does with its colors.

This also means, that the other party will have something very strange if he/she doesn't have this plugin.

eg:
you 'll need to write something like
  "hello, go to here to install the program"
and the other party with the plugin will see
  "hello, go to here to install the program"
and the other party without the plugin will see
  "hello, go to here to install the program"


err this is what i meant ^o) [/sarcasm]

just out of curiosity is the sheet the text goes onto an XML sheet?
[Image: jeansiger5.jpg]
01-12-2005 01:06 AM
Profile PM Find Quote Report
rompom7
Junior Member
**


Posts: 92
Joined: Apr 2004
RE: How to send a hyperlink text to other contacts?
I think this would be a good plugin, especially for getting people to go to those websites like troutwars.
01-12-2005 09:13 AM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: How to send a hyperlink text to other contacts?
no it isn't... people who don't have such a plugin will only be confused more (as both parties will need this plugin to let it work).

And what is wrong with just typing the URL fully?
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-12-2005 10:40 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On