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

My Plugin
Author: Message:
dazlee
Junior Member
**


Posts: 15
Joined: Sep 2005
O.P. My Plugin
Ok so i am macking progress with my shared browser, i finaly got it to send messages from the browser form.

New problem:
if i go sendChat Chr(nCCNotify) + "gotor"
It fails, it comes through as:

otor

the sResult = Chr(n..... works like it should inside the actual modual but sendChat is called from my form....

Anyone got any idea why this is?

I use sendkeys to send the chat string and then a {enter} any help much apreciated.
09-29-2005 07:12 PM
Profile E-Mail PM Find Quote Report
M73A
Veteran Member
*****

Avatar


Posts: 3213
Reputation: 37
34 / Male / Flag
Joined: Jul 2004
RE: My Plugin
shared browser?

i've got something like that called jybe... but if this works through msn it wud b a lot easier:P

[Image: lost7ru.gif]
09-29-2005 07:15 PM
Profile E-Mail PM Find Quote Report
dazlee
Junior Member
**


Posts: 15
Joined: Sep 2005
O.P. RE: My Plugin
Ye i can make a shared browser no problem i just wanted something in MSN, but i cant catch the result's with the parse (w/e the last parse method is in sample, (closed VB for 2nite))

:( because im not using traditional sMessage = Chr(nCCNotify) im sending my chat with send keys....

HELP! :( pwease
09-29-2005 09:11 PM
Profile E-Mail PM Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: My Plugin
You could make a command that sends the notification code and then use sendkeys to send the code.
For example your plugin has a command that is /xsendnotification, and this command basically sends the notification code your using and whatever is passed as a parameter.
Then you can sendkeys "/xsendnotification <whatever your sending>"
09-29-2005 09:21 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: My Plugin
Using sendkeys (especially the intristic function of VB) can be problematic in many situations and should be avoided at all cost or at least used with extreme care if no other way possible (but there is always another, better, way); it's much too easy to break it.

Instead use the proper way via Plus!' plugin API or via the sendmessage windows api (or at least use the windows sendkey api, but not the VB' one). Never relay on VB's sendkeys method to do a job properly...

This post was edited on 09-30-2005 at 05:24 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-30-2005 05:20 AM
Profile PM Find Quote Report
dazlee
Junior Member
**


Posts: 15
Joined: Sep 2005
O.P. RE: My Plugin
Hi, where is the send keys windows API?
09-30-2005 06:28 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: My Plugin
for example, you can use SendMessage.
http://msdn.microsoft.com/library/default.asp?url.../keyboardinput.asp

See especially the Windows messages: WM_KEYUP, WM_KEYDOWN, etc. to send single keys...

Nevertheless, such methods should (and can) be avoided by sending the appropiate message/API instead. Use sendkey-stuff as less as possible. In fact there are always better ways to do it (depending on what you exactly want to do in the end).
.-= A 'frrrrrrrituurrr' for Wacky =-.
10-01-2005 12:21 AM
Profile PM Find Quote Report
dazlee
Junior Member
**


Posts: 15
Joined: Sep 2005
O.P. RE: My Plugin
Ive used SendMessage but it fails, you have to focus the window inside the conv window, and for some reason i can not focus that from inside the dll i can outside.....

So as i said? a windows send key api?

Ok i think i have my answer, SetWindowText will work with Chr(&H12) however, i need the hwnd of the text control, how can i get that based on msnger window hwnd? FindWindowEx i dont know the class ..... ?

This post was edited on 10-02-2005 at 01:09 PM by Tochjo.
10-01-2005 11:47 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