Shoutbox

Delphi Template - 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: Delphi Template (/showthread.php?tid=12488)

Delphi Template by Whacko on 07-07-2003 at 05:05 PM

UPDATED FOR 2.20.48!!!!

w00t first delphi plugin template for MsgPlus! 2.20.48 :)

I translated this from the C++ source. Its my first Dll i made in delphi so it _MIGHT_ not work perfectly :P
but i TESTED it so as far as I know it SHOULD work :P

includes:
-  .reg
- sample dll


the source contains the same comments as the original sources, tho i adjusted it a bit for Delphi.


Please reply if you use it :) thanks





P.S. Somone make this a sticky post maybe?? or Patchou maybe you can add it to your zipfile :)


RE: Delphi Template by Kryptonate on 07-07-2003 at 05:30 PM

And what does it do?? +cmd's??


RE: Delphi Template by Whacko on 07-07-2003 at 05:36 PM

its the plugin source for C++ TRANSLATED to Delphi


RE: Delphi Template by Wabz on 07-07-2003 at 05:40 PM

Cool well done :)


RE: Delphi Template by Misterjad on 07-07-2003 at 05:40 PM

gr8 whacko you rocks !!

when i see yr avatar i always think its patchou ....


RE: Delphi Template by Whacko on 07-07-2003 at 05:47 PM

:) lets see if i can find another avatar :x


RE: Delphi Template by kasperl on 07-07-2003 at 07:41 PM

o yes, thank you very much!

edit:
i just re-read all the comments in there, and if i read this correctly, you can make a bot with this, right?


RE: Delphi Template by kasperl on 07-07-2003 at 08:09 PM

ok, i'm a Delphi beginner so this is very stupid of me to ask, but if i want to test if my function should do anything at all, i should use

if sCommand :="/xklbot1" then result :=true else end;

right?


RE: Delphi Template by Misterjad on 07-07-2003 at 08:09 PM

sure you can make a bot...

/biensur

!!!

whacko > my avatar is the best, cuz its meeeee =)


RE: Delphi Template by Whacko on 07-07-2003 at 08:29 PM

one quick note... sCommand is NOT a command someone ELSE sent.. its what you type yourself.

quick example:


if sCommand = '/xklbot1' then
begin
  {do something here}

  result := true;
end
else
begin
  {do something else}
  result := false
end;


RE: Delphi Template by kasperl on 07-07-2003 at 08:34 PM

i got it, is there a way for a script to only run after someone from the inside activates it, and someone from the outside triggered it?


RE: Delphi Template by Whacko on 07-08-2003 at 10:57 AM

UPDATED FOR 2.20.48!!!!


RE: Delphi Template by kasperl on 07-08-2003 at 08:06 PM

i'll learn Delphi first, before i start playing with this stuff more.

btw, is it possible for a plugin to write to the disk, and to recieve and send files?


RE: Delphi Template by chris on 09-01-2003 at 05:02 AM

What about 2.20.52?


RE: Delphi Template by volkl on 09-01-2003 at 07:33 AM

:S me is really confuzded..can sum1 plz explain 2 me wat the fuck delphi is?


RE: Delphi Template by chris on 09-01-2003 at 07:45 AM

i think its a programing language... i could be wrong but im pretty sure:D


RE: Delphi Template by censu on 09-01-2003 at 02:47 PM

Wow! Whacko, I love you, i really couldn't be assed doing the conversion myself! Cheers even more for open-sourceing it. I intend to re-write the program listed here:

http://www.joni.easynet.co.uk/myprogs_msn7727.html

This time, fully opensource, with better protection and less annoyance features.

Thanks again.

(oh yeah, the dowload is disabled right now, but will be up soon)


RE: Delphi Template by censu on 09-01-2003 at 02:51 PM

In response to Kasperl's question.
"is it possible for a plugin to write to the disk, and to recieve and send files?"
Yeah, a pluggin being a .dll file, is simply an .exe file... incapable of Launching itsself. Within a .dll, you can have most any aspect of an .exe , but of course, it mus be triggered in this instance by msgplus or another application sending commands and things to it, i.e.   initialise().

Hope that helps

Censu


RE: Delphi Template by g@rfield on 09-10-2003 at 04:55 AM

I compiled your template (using Delphi 6), but the tag (!XTAG1) does not result in the text 'test', instead the tag just get shown in the message window. What am I doing wrong ?

I'm using MsgPlus 2.20.53 with MSN Messenger 6.0.0602

BTW the .dll you supplied in the zipfile doesn't work either.


RE: RE: Delphi Template by matty on 09-15-2003 at 05:26 AM

quote:
Originally posted by censu
Wow! Whacko, I love you, i really couldn't be assed doing the conversion myself! Cheers even more for open-sourceing it. I intend to re-write the program listed here:

http://www.joni.easynet.co.uk/myprogs_msn7727.html

This time, fully opensource, with better protection and less annoyance features.

Thanks again.

(oh yeah, the dowload is disabled right now, but will be up soon)



if you created the website i suggest editing your no right click feature cuz i still got through it... use this instead (its what i use on my site for my boss in the states)

Stick this between </head> and <body>
code:
<script language=JavaScript>
function clickIE4()
{
   if (event.button==2)
   {
    return false;
   }
}

function clickNS4(e)
{
   if (document.layers||document.getElementById&&!document.all)
   {
    if (e.which==2||e.which==3)
    {
     return false;
    }
   }
}

if (document.layers)
{
   document.captureEvents(Event.MOUSEDOWN);
   document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById)
{
   document.onmousedown=clickIE4;
}
   document.oncontextmenu=new Function("return false")
</script>


RE: RE: RE: Delphi Template by user2319 on 09-20-2003 at 08:49 AM

quote:
Originally posted by ---+[Matty]+---
....................

Stick this between </head> and <body>
code:
<script language=JavaScript>
function clickIE4()
{
   if (event.button==2)


.....


blah :tongue: IE4