Shoutbox

Making a plugin help - 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: Making a plugin help (/showthread.php?tid=43632)

Making a plugin help by OWNd742 on 04-25-2005 at 05:39 PM

hi im trying to make a plugin for msn. and well im stuck at stage one.

dont know how to open a dll. i want to do this so i can take a look at the code and see what I have to do to make one.


anyone please msn me or write back to this forum.

goldfarb@rogers.com - msn


RE: Making a plugin help by Stigmata on 04-25-2005 at 05:40 PM

you dont disasemble dll's its wrong...


tell us what you want to do but we can provide code for you..


RE: Making a plugin help by OWNd742 on 04-25-2005 at 05:43 PM

well that takes out the fun for me :(


i just wanted to add a irc script i have, it counts ur days and shit when u put in your birthday.

heres the mirc code if it helps


//code

code:
alias age {
  set %age $calc((($ctime - $ctime(1986 May 4))) /60 /60 /24 /365.2422)
  set %next.bday $duration($calc($ctime(2005 May 4) - $ctime))
  say I am $left(%age,6) years old. My Next Birthday is in %next.bday
  unset %age
}
//end of code

basically says "I am 18.976 years old. My Next Birthday is in 1wk 2days" when u say ur bday is on may 4 1986
RE: Making a plugin help by CookieRevised on 04-25-2005 at 05:51 PM

to know how to make a plugin start by reading the standard help pages: http://www.msgplus.net/help_plugins.php

---------------

[OFF TOPIC]

As for the mIRC script: You forgot to unset %next.bday...

Or, even better, remove the unset command and change the set commands to:
  set -u0 %age $calc((($ctime - $ctime(1986 May 4))) /60 /60 /24 /365.2422)
  set -u0 %next.bday $duration($calc($ctime(2005 May 4) - $ctime))

This will unset the variables automatically (see the help file in mIRC).

[/OFF TOPIC]


RE: Making a plugin help by Tasha on 04-25-2005 at 05:59 PM

quote:
Originally posted by CookieRevised
to know how to make a plugin start by reading the standard help pages: http://www.msgplus.net/help_plugins.php


Indeed. :p

I was also looking for a help, and I found a topic that may help you after you've created a plugin:

Tutorial: making an installer for your plugin in a few easy steps
RE: Making a plugin help by OWNd742 on 04-25-2005 at 06:00 PM

So can someone write that script so i can see what it would look like?

want to learn and im a fast learner for coding



Also i would like to know the program i need to dl, and mabe a link?

i have Borland C++ Compiler 5.5 but i think its for mac, cuz i cant open the friggan program...


RE: Making a plugin help by Stigmata on 04-25-2005 at 06:15 PM

its only math mate :)

work out age, how many months + days till birthday :)

code:
Function YMD(StartDate As Date, EndDate As Date) As String
Dim TempDate As Date
Dim NumOfYears As Long
Dim NumOfMonths As Long
Dim NumOfWeeks As Long
Dim NumOfDays As Long
Dim NumOfHMS As Double
Dim TSerial1 As Double
Dim TSerial2 As Double
NumOfYears = DateDiff("yyyy", StartDate, EndDate)
TSerial1 = TimeSerial(Hour(StartDate), _
Minute(StartDate), Second(StartDate))
TSerial2 = TimeSerial(Hour(EndDate), _
Minute(EndDate), Second(EndDate))
NumOfHMS = 24 * (TSerial2 - TSerial1)
If NumOfHMS < 0 Then
NumOfHMS = NumOfHMS + 24
EndDate = DateAdd("yyyy", -1, EndDate)
End If
StartDate = DateSerial(Year(EndDate), _
Month(StartDate), Day(StartDate))
If StartDate > EndDate Then
StartDate = DateAdd("d", -1, StartDate)
NumOfYears = NumOfYears - 1
End If
NumOfMonths = DateDiff("m", StartDate, EndDate)
StartDate = DateSerial(Year(EndDate), _
Month(EndDate), Day(StartDate))
If StartDate > EndDate Then
StartDate = DateAdd("m", -1, StartDate)
NumOfMonths = NumOfMonths - 1
End If
NumOfDays = Abs(DateDiff("d", StartDate, EndDate))
YMD = CStr(NumOfYears) & " year" & _
IIf(NumOfYears = 1, "", "s")
YMD = YMD & ", "
YMD = YMD & CStr(NumOfMonths) & " month" & _
IIf(NumOfMonths = 1, "", "s")
YMD = YMD & ", "
YMD = YMD & CStr(NumOfDays) & " day" & _
IIf(NumOfDays = 1, "", "s")
End Function



RE: Making a plugin help by OWNd742 on 04-25-2005 at 06:23 PM

okay that looks nothing like C++ lol and well how is that format supposed to be initiated, like i want /age "month" "day" "year"

if u have it in that format then its all good..


RE: Making a plugin help by (CyBeRDuDe) on 04-26-2005 at 07:22 AM

Well... First of I suggest you learn programming  BEFORE you start making plugins for MSGPlus!.. That would be a great start! :P When (In a few months/years) you know how to program, either in VB or C++, then you can come back and ask the same question..... Ok?


RE: Making a plugin help by RaceProUK on 04-26-2005 at 08:25 AM

It won't take as along as that to learn enough VB to write a plugin. The basics of VB can be picked up in under a week. True, C++ may take longer, but take it one step at a time: VB first, then C++.


RE: Making a plugin help by OWNd742 on 05-02-2005 at 10:23 PM

can somebody just write the plugin? i tried learning how to but still stuck :(