Shoutbox

How to send a hyperlink text to other contacts? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: How to send a hyperlink text to other contacts? (/showthread.php?tid=36753)

How to send a hyperlink text to other contacts? by carlz on 01-10-2005 at 01:08 AM

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?


RE: How to send a hyperlink text to other contacts? by Ash_ on 01-10-2005 at 11:23 AM

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.
RE: How to send a hyperlink text to other contacts? by MoRiA on 01-10-2005 at 12:12 PM

I think you're pretty much spot on there...


RE: RE: How to send a hyperlink text to other contacts? by Ash_ on 01-10-2005 at 12:20 PM

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.
RE: How to send a hyperlink text to other contacts? by riahc4 on 01-10-2005 at 07:21 PM

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..

RE: How to send a hyperlink text to other contacts? by Millenium_edition on 01-10-2005 at 07:31 PM

i doubt that's possible. unless you want MSN to become exploited like MSN, of course.


RE: How to send a hyperlink text to other contacts? by CookieRevised on 01-11-2005 at 12:11 AM

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)
RE: RE: How to send a hyperlink text to other contacts? by Ash_ on 01-12-2005 at 01:06 AM

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?
RE: How to send a hyperlink text to other contacts? by rompom7 on 01-12-2005 at 09:13 AM

I think this would be a good plugin, especially for getting people to go to those websites like troutwars.


RE: How to send a hyperlink text to other contacts? by CookieRevised on 01-12-2005 at 10:40 AM

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?