What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » plug in help required - nick name from a text file.

plug in help required - nick name from a text file.
Author: Message:
andrewbob
New Member
*


Posts: 6
Joined: Jan 2006
O.P. plug in help required - nick name from a text file.
Afternoon all.
I want to make a basic plugin using Visual Basic 6 or VB.net that will allow me to:
1. Load a nick name from a file by using a reference number. eg 12.
2. Have a text file (or it could be within the plugin) that has a reference number then a quote/sentence. eg.
       12, Some nickname thing
3. Allow me to add extra to the name.
4. a / command thing eg. /quote

So all up in the end i'll be able to say
/quote 12 + any other name stuff i want

Can anyone help me and/or give me some code to start off with.
Thanks
--
Andrew Bob
01-02-2006 10:55 AM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: plug in help required - nick name from a text file.
Well as you want to reference them by a number, it would probably be easiest to use an INI file to store the quotes/names.

Then to change the nickname you can use the built in Plus! function ChangeNick  SetNewName.

This post was edited on 01-02-2006 at 08:48 PM by Dempsey.
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
01-02-2006 10:58 AM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: plug in help required - nick name from a text file.
quote:
Originally posted by andrewbob
Can anyone help me and/or give me some code to start off with.
Thanks
How much experience do you have?

I ask this because although what Dempsey suggested is an extremely good way to approach this, it also requires you to use API's, which aren't so 'basic' if you are a beginning programmer....

Another solution (very basic solution, but will work nontheless) is to read x amount of lines from a certain file. So if you would like to use nick number 12, read the 12th line from the file by reading all lines one by one and counting up to 12 and stop reading then.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-02-2006 11:14 AM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: plug in help required - nick name from a text file.
quote:
Originally posted by Dempsey
built in Plus! function ChangeNick.
SetNewName :P
[Image: spartaafk.png]
01-02-2006 07:01 PM
Profile PM Web Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: plug in help required - nick name from a text file.
quote:
Originally posted by raceprouk
quote:
Originally posted by Dempsey
built in Plus! function ChangeNick.
SetNewName :P
Meh I couldn't remember, so I guessed it :P
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
01-02-2006 08:48 PM
Profile E-Mail PM Web Find Quote Report
andrewbob
New Member
*


Posts: 6
Joined: Jan 2006
O.P. RE: plug in help required - nick name from a text file.
i have used APIs and things before i'm sure that i could make a form that could allow a user to enter in a reference  number and have it return the sentence attached to it. I just don't know how to get it 2 talk Messenger Plus.
I don't really like the idea of counting down the lines, just because i'm thinking about the fact i might want to use key words insted of just remembering numbers down the track.
Thanks
--
Andrew Bob

This post was edited on 01-02-2006 at 11:43 PM by andrewbob.
01-02-2006 11:37 PM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: plug in help required - nick name from a text file.
The Plugin API Documentation contains all you need to know about the Plus! API. The bits you'll need to look at are Initialize(), PublishInfo*(), ParseCommand(), and SetNewName().
[Image: spartaafk.png]
01-03-2006 09:26 AM
Profile PM Web Find Quote Report
andrewbob
New Member
*


Posts: 6
Joined: Jan 2006
O.P. RE: plug in help required - nick name from a text file.
In the Public Function ParseCommand area how do i find out what a user has typed in after the command.
Eg. /xsetnameto 2 or /xsetnameto Silly 1?
Thanks
--
Andrew Bob
01-09-2006 06:49 AM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: plug in help required - nick name from a text file.
quote:
Originally posted by andrewbob
In the Public Function ParseCommand area how do i find out what a user has typed in after the command.
Eg. /xsetnameto 2 or /xsetnameto Silly 1?
Thanks
--
Andrew Bob
ParseCommand passes in two variables, sCommand and sCommandArg, where sCommand is the command used, such as xsetnameto and sCommandArg is 2 or Silly 1
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
01-09-2006 08:47 AM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: plug in help required - nick name from a text file.
...which is all explained in detail and with examples in the Plugin API Documentation.

This post was edited on 01-09-2006 at 09:15 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-09-2006 09:14 PM
Profile PM 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