Shoutbox

Creating plugin, help needed - 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: Creating plugin, help needed (/showthread.php?tid=37425)

Creating plugin, help needed by NightScream on 01-24-2005 at 04:54 PM

Hello everybody,

I'm trying to write my own plugin in VB6.
I've been experimenting with text-to-speech.
i have been looking very long for a good text-to-speech notifier.
ex: when someone comes online it would say "person" status is online.

now i'v been examining the plugin sdk but i cant find the function that is called when persons change their status.

can someone help me with this?

Thank you


RE: Creating plugin, help needed by Dempsey on 01-24-2005 at 04:56 PM

The Plus! plugin API doesnt inform you of tstaus change, but the Messenger API does, which you can use in a plugin.
Use oMessenger sent in Initalise


RE: Creating plugin, help needed by NightScream on 01-24-2005 at 07:47 PM

thanks for that info but now i have another problem.
probabely something very stupid but i cant find it.
i have compiled the dll, pasted it in the plugins dir from msgplus, registered it with the command supplied in the readme.doc in the plugin sdk and i have created a registry value.

where did i go wrong?
http://users.telenet.be/tommekevda/msgplusplug.JPG
here is a screenshot.

my projectname is nsSTM
the classmodule name is nsSTMClass


RE: Creating plugin, help needed by RaceProUK on 01-24-2005 at 08:13 PM

A description of the problem would be useful...


RE: Creating plugin, help needed by NightScream on 01-24-2005 at 08:16 PM

heh :angel: sorry. i was doing multiple things at the same time.
so my problem is that msgplus doesn't display the plugin in its plugin window @ preferences


RE: Creating plugin, help needed by lopardo on 01-24-2005 at 10:59 PM

Are you exporting the functions correctly? Take a look at the sample included in the plugin SDK, more info here.


RE: Creating plugin, help needed by NightScream on 01-24-2005 at 11:21 PM

hi, i don't know what i did wrong but i found a .reg file with the samples and i used it on my plugin and it works now.
tnx for our reply's


RE: Creating plugin, help needed by RaceProUK on 01-25-2005 at 12:06 PM

The class you need to put in the regkey is the one that contains the definitions of the API functions.


RE: Creating plugin, help needed by NightScream on 01-25-2005 at 12:59 PM

yes i know, but i think i did something wrong, but now it works.
And here i am, yet with another question.
Here is a screenshot of the problem.
http://users.telenet.be/tommekevda/plugin_problem.JPG
when i click on "configure", i get that error.


RE: Creating plugin, help needed by NightScream on 01-25-2005 at 11:57 PM

anyone?

edit: I just want to add that it is a text-to-speech plugin and it's working perfectly but i had to implement a 10 secons delay or else it would read all the contacts that came online (at startup).
isn't there a variable wich i can use to see when the contact list is fully loaded an initial statusses are set?


RE: Creating plugin, help needed by RaceProUK on 01-26-2005 at 09:22 AM

For the 'Configure' problem, use
    Form1.Show vbModal

As for the reading probvlem thingy, there isn't a variable or event like that I'm afraid. Anyway, why not have it read all online contacts on sign-in? Could be useful :)


RE: Creating plugin, help needed by NightScream on 01-26-2005 at 04:45 PM

yes, but it could also be really annoying ;)

edit: and for the problem i have, if you look @ the screenshot you can see that i already have the form loaded as Modal :(


RE: Creating plugin, help needed by Millenium_edition on 01-26-2005 at 05:34 PM

quote:
Originally posted by NightScream
yes, but it could also be really annoying ;)

edit: and for the problem i have, if you look @ the screenshot you can see that i already have the form loaded as Modal :(
unfortunately the owner form can't be "me", because in a class "me" returns the class.
RE: Creating plugin, help needed by NightScream on 01-26-2005 at 05:37 PM

so i just leave the "me" away?

i'm sorry that i sound very noobisch, i do have experience with VB6 but not with creating dll files ;)

edit: i have removed the "me" (like this: Public Function Configure()
frmOptions.Show vbModal
End Function
) but i still get the same error. i don't get it :s


RE: Creating plugin, help needed by Millenium_edition on 01-26-2005 at 05:53 PM

well you can always use the ShowWindow API.


RE: Creating plugin, help needed by NightScream on 01-26-2005 at 06:06 PM

i found the error, it was a error at the load event of the options form.
i typed me.visible = true
apparently that was the error. thx for looking into it guys