What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Doing math in a VB dll

Doing math in a VB dll
Author: Message:
gone
New Member
*


Posts: 1
Joined: Aug 2004
O.P. Huh?  Doing math in a VB dll
I just started tinkering with Plus! plugins today and I'm writing a ping function,  my side pings the other, the other responds then I want to report the MS it took to respond, but when I try to do math that part just doesn't respond then but if I take the math out it works. Here is what the section looks like.

If sContactName <> MyUserName Then
     PingDelayEnd = GetTickCount
     CurrentPing = False
     PingTime = (PingDelayEnd - PingDelayStart)
     sTextToSend = "Ping Time: 9[" & PingTime & "ms]"
     sText = ""
     ReceiveNotify = True
     Exit Function
Else
     Exit Function
End If
08-28-2004 11:19 PM
Profile E-Mail PM Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: Doing math in a VB dll
quote:
Originally posted by gone
I try to do math that part just doesn't respond then but if I take the math out it works
could you explaint that a bit more? and if you post the whole code (both ReceiveNotify and ParseCommand functions) it'd be great. We'd be able to help better.
quote:
Originally posted by gone
sTextToSend = "Ping Time: 9[" & PingTime & "ms]"
don't use the  in the string. Instead use the Chr function with the needed code you'll find in the documentation (something like CCColor or similar, i don't remember)
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
08-29-2004 09:05 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Doing math in a VB dll
nCCColor
[Image: spartaafk.png]
08-30-2004 02:16 PM
Profile PM Web 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