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

Pages: (2): « First [ 1 ] 2 » Last »
oConversationWnd
Author: Message:
dazlee
Junior Member
**


Posts: 15
Joined: Sep 2005
O.P. oConversationWnd
Hey, im working on a shared browser, so i got me a /goto command and a form with my browser....

my problem ='s this, how can i get something unique for that convisation like a session ID? etc so i can open multiple browser windows for multiple conv's

Also how can i send a msg to a convisation? not in reply to a parse command but on the fly, say if i had a session ID or oConversationWnd object.... ?

Thanks!!!!!!!!!!!!!!!!! ive been strugling all day :(

Daz
09-25-2005 06:05 PM
Profile E-Mail PM Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
20 / Other / Flag
Joined: Jul 2003
RE: oConversationWnd
the hwnd is individual
09-25-2005 06:08 PM
Profile PM Web Find Quote Report
dazlee
Junior Member
**


Posts: 15
Joined: Sep 2005
O.P. RE: oConversationWnd
Ah yes, i forgot about that

But what about sending a msg to it if i have hwnd?
09-25-2005 06:09 PM
Profile E-Mail PM Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
20 / Other / Flag
Joined: Jul 2003
RE: oConversationWnd
code:
SendMessage(hwnd, SOME_RANDOM_FLAG, Message, Other Message)

09-25-2005 06:17 PM
Profile PM Web Find Quote Report
dazlee
Junior Member
**


Posts: 15
Joined: Sep 2005
O.P. RE: oConversationWnd
i meant a chat msg not wmsg
09-25-2005 06:33 PM
Profile E-Mail PM Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: oConversationWnd
quote:
Originally posted by dazlee
Ah yes, i forgot about that

But what about sending a msg to it if i have hwnd?

You can use a sendkeys type things to "type" the text and the press enter.
A better method is using PostMessage to mimic the messages sent when the user types, as this doesnt require the convosation window to have focus.
09-25-2005 06:42 PM
Profile PM Find Quote Report
dazlee
Junior Member
**


Posts: 15
Joined: Sep 2005
O.P. RE: oConversationWnd
but wont it require the text field to be focused?
09-25-2005 06:48 PM
Profile E-Mail PM Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: oConversationWnd
quote:
Originally posted by dazlee
but wont it require the text field to be focused?
Not if you use postmessage to send fake keystroke messages to the window.
09-25-2005 07:03 PM
Profile PM Find Quote Report
dazlee
Junior Member
**


Posts: 15
Joined: Sep 2005
O.P. RE: oConversationWnd
Hey again, i tried what you said but i cant get it to work:

Public Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Long) As Long


Private Sub sendKey(ByVal key As Long)
    PostMessage win, &H100, key, 0
End Sub


sendKey Asc("h")

I know the win var is correct coz i tried a destoryWindow ... any idea?
09-25-2005 07:34 PM
Profile E-Mail PM Find Quote Report
TheGeek
Full Member
***

Avatar
Excuse my geekyness.

Posts: 179
Reputation: 15
33 / Male / –
Joined: Feb 2005
RE: oConversationWnd
here's something i think can help you:
code:
void SendTextToNotepad(char *theString){
    HWND hNotepad = FindWindow("Notepad", NULL);
    if(hNotepad){
        HWND hEditBox = GetDlgItem(hNotepad, 15);
        for(int i = 0; i < strlen(theString); i++){
            PostMessage(hEditBox, WM_CHAR, (WPARAM)theString[i], 0);
        }
    }
}
It's c++, but i think you'll manage to translate it to vb...
It sends a string to notepad...
[Image: 468x60banner.png]
09-26-2005 07:25 PM
Profile E-Mail PM Web 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