What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Help - Plugin Forms

Help - Plugin Forms
Author: Message:
michael_m91
Full Member
***


Posts: 371
Reputation: 1
33 / Male / –
Joined: Jan 2004
O.P. Help - Plugin Forms
If you have things like Stuffplug NG, when you choose configure it brings up a form.

How can i do this?

I'm using VB.

I tried diplaying a form by doing this

form1.show


The message that came up when i tried this said "Sorry this command is either not recognized or an error occured during it's processing. If the message is not supposed to be a command, please put a doubble '//' at the begginng.



Alright Anwser Found.

If your trying to implement a form into a plugin you need to make it and then type this when you want to use it.

form1.show vbmodal, screen.activeform

"form1" is replaced by the name of the form, by default the name is form1.

Note this is all with VB

This post was edited on 09-08-2004 at 04:05 AM by michael_m91.

[Image: Email.JPG]
09-08-2004 03:00 AM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help - Plugin Forms
To make all what is above more understanding.

In Visual Basic and creating Plugins

code:
Form1.Show
isn't the same as
code:
Form1.Show vbModal

For whatever reason with Plus! Plugins the Form you are trying to show has to be set to a Modal state for it to be viewable. I have talked to Patchou about this and he really didn't say much as he doesn't really know anything about VB at all 8-).

A way around this is to create an EXE that is in the Plugins directory and execute it when /xsamplecmd is entered. You can do a lot more with the EXE. You can use the Command Line to pass through information if you need specifics from the Conversation Window and so on.
09-08-2004 04:50 AM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Help - Plugin Forms
quote:
Originally posted by Matty.
For whatever reason with Plus! Plugins the Form you are trying to show has to be set to a Modal state for it to be viewable. I have talked to Patchou about this and he really didn't say much as he doesn't really know anything about VB at all 8-).
Maybe this is to do with the way modality works? I mean, if the form is modal, it blocks the function that shows the form from returning until the form is closed.
If you tested this under C++ with DialogBox() and CreateWindow(), that could reveal the reason.
[Image: spartaafk.png]
09-08-2004 10:34 AM
Profile PM Web Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: Help - Plugin Forms
could it be because patchou blocks you from making new threds in vb and when you use form.show it runs the form in a new thred ?
[Image: dt2.0v2.png]      Happy Birthday, WDZ
09-08-2004 10:59 AM
Profile PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Help - Plugin Forms
You can make new threads in C++, so I don't see why you can't create new threads in VB. Oh well, let's just wait for Patch to tell us why.
[Image: spartaafk.png]
09-08-2004 09:41 PM
Profile PM Web Find Quote Report
michael_m91
Full Member
***


Posts: 371
Reputation: 1
33 / Male / –
Joined: Jan 2004
O.P. RE: Help - Plugin Forms
What the hell are you talking about? Threads, i was talking about showing forms in VB.

[Image: Email.JPG]
09-15-2004 04:53 AM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Help - Plugin Forms
Actually, come to think of it, it's probably not a thread problem (I use threads fine in my plugins), but a form modality problem.
[Image: spartaafk.png]
09-15-2004 11:28 AM
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