What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » delaying the parsecommand function

delaying the parsecommand function
Author: Message:
factory
New Member
*


Posts: 4
Joined: Jun 2004
O.P. delaying the parsecommand function
hi i'm trying to build a addin that will allow a user to input fields of a seperate form and then send those fields as a message to another user. i've made a command and in its parsecommand function i have created a form with the fields. the problem is that i only want to populate the sResult object/variable after the user has inserted all the fields on the seperate form. therefore i need a way of delaying the completion of the parsecommand function until the user clicks on a button on the seperate form.

Overview of project
i am trying to creat a addin that will allow a user to send fields via MSN to a seperate user (or server with a dotNet passport) where the message can be decoded and its information can be submitted into fields of a table in a sequal server database automatically (making use of a receiveNotify function in an addin on the servers MSN).

the plan is also to make the client MSN to be able to configure the server MSN (using a different receiveNotify) and for the input forms on the clients to be dynamically created. this will allow anybody with the addin to be able to send data to any sequal server database that has MSN with its relevant plugin installed, provided they have access rights and they know the table and field names of the database.

ANY ideas or different ways of doing this will be much appreciated Thanx
06-29-2004 05:08 PM
Profile E-Mail PM Find Quote Report
Jutx
Junior Member
**

Avatar
Shocking.......

Posts: 98
– / Male / –
Joined: May 2003
RE: delaying the parsecommand function
If you are using VB then just show the form with this syntax:

Formname.Show VbModal, Screen.ActiveForm

ParseCommand will not continue until the form has been unloaded
Hard work pays off in the long run but laziness pays off NOW (H) :banana:
06-29-2004 05:12 PM
Profile PM Find Quote Report
factory
New Member
*


Posts: 4
Joined: Jun 2004
O.P. RE: delaying the parsecommand function
sorry didn't say i was using VB.net

that doesn't seem to work
i used this line of code the show command doesn't take any parameters and it won't recognise anything without the brackets

frmXsendIssue.Show(VbModal, Screen.ActiveForm)
06-29-2004 05:46 PM
Profile E-Mail PM Find Quote Report
Jutx
Junior Member
**

Avatar
Shocking.......

Posts: 98
– / Male / –
Joined: May 2003
RE: delaying the parsecommand function
Can't say i know VB.net well but i still would have thought it would've worked. Anyway this should take care of it, although its not the best way of doing it.

in a module:

code:
Public StopThingy As boolean

' in ParseCommand

code:
StopThingy = False
frmXsendIssue.Show(VbModal, Screen.ActiveForm)
While StopThingy = False
Doevents
Wend

In forms unload procedure

code:
StopThingy = True


(PS: lol at my dodgy variable names)

edit: This is VB6 code by the way you may need to change it to VB.NET (but i'm sure you get the general idea)

This post was edited on 06-29-2004 at 06:43 PM by Jutx.
Hard work pays off in the long run but laziness pays off NOW (H) :banana:
06-29-2004 06:40 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: delaying the parsecommand function
I think vbModal stops the user using other windows, that's all.

I have something similar I want to do, so I'll look into it and see what I can find.
[Image: spartaafk.png]
06-29-2004 07:46 PM
Profile PM Web Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
Joined: Jan 2003
RE: delaying the parsecommand function
quote:
Originally posted by factory
sorry didn't say i was using VB.net

that doesn't seem to work
i used this line of code the show command doesn't take any parameters and it won't recognise anything without the brackets

frmXsendIssue.Show(VbModal, Screen.ActiveForm)
what about

frmXsendIssue.ShowDialog()
;)
quote:
Originally posted by Jutx
Public StopThingy As boolean
:mipdodgy: @ StopThingy (both the name of the variable and the way of coding that)

quote:
Originally posted by Jutx
edit: This is VB6 code by the way you may need to change it to VB.NET (but i'm sure you get the general idea)
in fact, that's VB6 ;) in VB.NET the ".Show vbModal" has been replaced (i think) by ".ShowDialog()"
quote:
Originally posted by raceprouk
I think vbModal stops the user using other windows, that's all.
yes and not. the user can't use the window that "owns" the modal one.

in fact when you .Show vbModal a form, the code from that point isn't executed until the from is hidden (or unloaded? can't remember now). if the vbmodal isn't said, once the form has been loaded and shown, the code after the .Show line is executed.
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
06-29-2004 10:35 PM
Profile PM Find Quote Report
factory
New Member
*


Posts: 4
Joined: Jun 2004
O.P. RE: delaying the parsecommand function
Shot everyone, sorry was sick yesterday so didn't get to try it out! I'm on it now tho!
07-01-2004 10:23 AM
Profile E-Mail PM Find Quote Report
factory
New Member
*


Posts: 4
Joined: Jun 2004
O.P. RE: delaying the parsecommand function
it works!!!!! shot YOU learn new things everyday! Jst to clarify i used the showDialog() function
07-01-2004 10:42 AM
Profile E-Mail 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