What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Another StuffPlug NG question...

Another StuffPlug NG question...
Author: Message:
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
Status: Online
O.P. Roll Eyes  Another StuffPlug NG question...
Hello.
I made a StuffPlug NG talker.
It makes the first letter of your message capital.
Here's the code:
code:
Private Function talker(ByVal strinput As String) As String

    talker = UCase$(Left$(strinput, 1)) & Mid$(strinput, 2)

End Function
When I try to set it as an autotalker StuffPlug NG says : "Not a valid talker. Do you want to turn off the autotalker?"
However, when I use /xtalk <name of talker> it works.

Does anyone have any ideas why this happens?

By the way I also tried coding the talker like this:
code:
Function talker(input)
     talker = UCase(Left(strinput, 1)) & Mid(strinput, 2)

End Function
and its the same thing happens... :(

Other information:
Windows Version: Windows XP, 5.01.2600
Messenger Client Version: 7.0.0425
Messenger Plus! Version: 3.40.0112

I named the talker "talker.ucase.vbs" (no quotes) and I put the talker on "C:\Program Files\Messenger Plus! 3\StuffPlug-NG" (I also put it in the Plugins folder)

Thank you!
YouTube closed-captions ripper (also allows you to download videos!)
01-02-2005 06:00 PM
Profile E-Mail PM Web Find Quote Report
TheBlasphemer
Senior Member
****

Avatar

Posts: 714
Reputation: 47
37 / – / –
Joined: Mar 2004
RE: Another StuffPlug NG question...
Hmmm, little problem with SPNG1,
If the returned value is not a string, it gives an error...
checking if a talker is a valid one happens by sending it an empty input...
try forcing the output to be a string by doing "" & UCase(.....
[Image: theblasp.png]
01-02-2005 06:11 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Another StuffPlug NG question...
code:
Function talker(strInput)
   If strInput <> "" Then
     talker = UCase(Left(strinput, 1)) & Mid(strinput, 2)
   Else: talker = ""
   End If
End Function

That will work, you should check if the input is Null, if it is then set it to a Null String

This post was edited on 01-02-2005 at 06:21 PM by matty.
01-02-2005 06:21 PM
Profile E-Mail PM Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
Status: Online
O.P. RE: Another StuffPlug NG question...
Nope.
Doesnt work... :(
This is what I currently have:
code:
Function talker(strinput)


    talker = "" & UCase(Left(strinput, 1)) & Mid(strinput, 2)
End Function

Edit: Matty, your code doesnt work too... :(

This post was edited on 01-02-2005 at 06:23 PM by Mike.
YouTube closed-captions ripper (also allows you to download videos!)
01-02-2005 06:21 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Another StuffPlug NG question...
Try this:

code:
Function talker(strInput)
   If strInput <> "" Then
     talker = UCase(Left(strInput, 1)) & Right(strInput, Len(strInput) - 1)
   Else
      talker = ""
   End If
End Function
01-02-2005 06:23 PM
Profile E-Mail PM Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
Status: Online
O.P. RE: Another StuffPlug NG question...
None of your code works Matty... :(
YouTube closed-captions ripper (also allows you to download videos!)
01-02-2005 06:25 PM
Profile E-Mail 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