What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » help me please =/

Pages: (2): « First « 1 [ 2 ] Last »
help me please =/
Author: Message:
LiMãØ
New Member
*

Avatar

Posts: 12
Joined: Aug 2004
O.P. RE: help me please =/
didnt work :(
08-14-2004 03:28 AM
Profile E-Mail PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: help me please =/
I believe "Form.Show vbModal" returns only after the form is hided or unloaded, Choli ;)


Well, this might work:

' inside parsecommand...
not_yet=true ' this is a global variable
form1.show vbmodeless, screen.activeform
while not_yet
DoEvents ' You don't want to hang Messenger here, don't you
wend
sResult = Form1.text1.text
end function

'inside form1...
sub commandbutton_enter_onclick()
not_yet = False
end sub

This post was edited on 08-14-2004 at 04:08 AM by Mnjul.
08-14-2004 04:07 AM
Profile PM Web Find Quote Report
LiMãØ
New Member
*

Avatar

Posts: 12
Joined: Aug 2004
O.P. RE: help me please =/
well... I got a problem here... when I'll compile it... it says the "not_yet" variable is not defined.. :(
08-14-2004 04:21 AM
Profile E-Mail PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: help me please =/
Choli said it is a global variable, so you must declare it somewhere in  a .bas module file like

Public not_yet As Boolean
08-14-2004 04:38 AM
Profile PM Web Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
42 / Male / Flag
Joined: Jan 2003
RE: help me please =/
quote:
Originally posted by Mnjul
I believe "Form.Show vbModal" returns only after the form is hided or unloaded, Choli
yeah, stupid me... I was thinking in making the form non modal and I typed vbmodal :P
quote:
Originally posted by Mnjul
DoEvents ' You don't want to hang Messenger here, don't you
sorry again, I forgot it :P Anyway, I had problems with DoEvents if it's inside a timer proc. I don't think it gives problems inside the parsecommand of plus, however be careful;)

a bit offtopic: btw, into what api call does VB translate (compile) DoEvents? In other words, is there any other way of yield the processor?
Messenger Plus! en español:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
08-16-2004 07:08 PM
Profile PM Find Quote Report
LiMãØ
New Member
*

Avatar

Posts: 12
Joined: Aug 2004
O.P. RE: help me please =/
:( err..... a made everything that you guys said.... but my command now don't work... only the command that opens the dialog :( the others works fine... :( did I made something wrong??? add me to your contact list? limaodf@msn.com

tnks for the help...
08-17-2004 02:59 AM
Profile E-Mail PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: help me please =/
Do you have any runtime errors?


Choli:
This is what I do in my C++ programs...not very sure if VB uses this ;)
code:

//(Under MFC)
//Ultimate DoEvents
void __stdcall DoEvents(){
    MSG dispatch;
    while (::PeekMessage( &dispatch, NULL, 0, 0, PM_NOREMOVE))
    {
        if (!AfxGetThread()->PumpMessage());
    }
}



This post was edited on 08-19-2004 at 03:34 AM by Mnjul.
08-19-2004 03:32 AM
Profile PM Web Find Quote Report
LiMãØ
New Member
*

Avatar

Posts: 12
Joined: Aug 2004
O.P. RE: help me please =/
I don't know if VB uses this code that you wrote too.... =/ I´m new on plugins development and I'd like to have some help =/
08-20-2004 10:05 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« 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