Shoutbox

My Plugin - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: My Plugin (/showthread.php?tid=51147)

My Plugin by dazlee on 09-29-2005 at 07:12 PM

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.


RE: My Plugin by M73A on 09-29-2005 at 07:15 PM

shared browser?

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


RE: My Plugin by dazlee on 09-29-2005 at 09:11 PM

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


RE: My Plugin by Plik on 09-29-2005 at 09:21 PM

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>"


RE: My Plugin by CookieRevised on 09-30-2005 at 05:20 AM

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...


RE: My Plugin by dazlee on 09-30-2005 at 06:28 PM

Hi, where is the send keys windows API?


RE: My Plugin by CookieRevised on 10-01-2005 at 12:21 AM

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).


RE: My Plugin by dazlee on 10-01-2005 at 11:47 AM

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 ..... ?