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

Pages: (2): « First [ 1 ] 2 » Last »
Button in chat window
Author: Message:
posseke
New Member
*


Posts: 14
41 / Male / –
Joined: Nov 2005
O.P. Button in chat window
Hi,

Is it possible to add a similar button in the chat window like the one patchou added for quicktext and sounds next to the typing area?

I would like to be able to change settings for my plugin in each chat window, whereas now I'm stuck on a external application that reads config settings from an XML file

Thanks for your opinion/remarks


Kenny

11-29-2005 09:39 AM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Button in chat window
Why not use the menu on the menubar? (Press Alt).
[Image: spartaafk.png]
11-29-2005 01:02 PM
Profile PM Web Find Quote Report
posseke
New Member
*


Posts: 14
41 / Male / –
Joined: Nov 2005
O.P. RE: Button in chat window
That is an option I considered, but is there any way to create something as I described in my first post?
The plugin is kkinda ready for use, but I need a good spot/position for the users to access the functionalities...
11-29-2005 01:26 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Button in chat window
Check this out: http://forums.msnfanatic.com/index.php?showtopic=11496

Obviously needing to be changed for the Conversation Window.

This post was edited on 11-29-2005 at 02:25 PM by matty.
11-29-2005 02:24 PM
Profile E-Mail PM Find Quote Report
posseke
New Member
*


Posts: 14
41 / Male / –
Joined: Nov 2005
O.P. RE: Button in chat window
Thx matty, i'm diggin' into that stuff right now, looks very nice indeed... exactly what i was looking for!

When my plugin(MsnFrag) is ready, I'll post it out here so you guys can beta test...
11-29-2005 05:25 PM
Profile E-Mail PM Web Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
21 / Other / Flag
Joined: Jul 2003
RE: Button in chat window
quote:
Originally posted by Matty
Check this out: http://forums.msnfanatic.com/index.php?showtopic=11496

Obviously needing to be changed for the Conversation Window.

http://forum.mess.be/index.php?showtopic=4318

^^ A version for a chat window i did a long time ago :)
11-29-2005 05:51 PM
Profile PM Web Find Quote Report
posseke
New Member
*


Posts: 14
41 / Male / –
Joined: Nov 2005
O.P. RE: Button in chat window
Here's one thing I don't understand, the form created to handle the textbox/button/image, it must exist at all time, but not visible?
11-29-2005 07:24 PM
Profile E-Mail PM Web Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
21 / Other / Flag
Joined: Jul 2003
RE: Button in chat window
basically yes :P
11-29-2005 07:28 PM
Profile PM Web Find Quote Report
posseke
New Member
*


Posts: 14
41 / Male / –
Joined: Nov 2005
O.P. RE: Button in chat window
K, it's working real nice for me, viva los handles ^^
11-29-2005 07:46 PM
Profile E-Mail PM Web Find Quote Report
posseke
New Member
*


Posts: 14
41 / Male / –
Joined: Nov 2005
O.P. RE: Button in chat window
K, sorry to whine again, but i'm getting an error in VB.NET saying the ShowWindow method is wrongly declared.
Is it possible that in .NET, this method has new paramaters? or am I just making the worst mistake ever?

Public Class FragMsnIMButton
    Private WithEvents oMessenger As MessengerAPI.Messenger
    Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
    <Runtime.InteropServices.DllImport("user32.dll")> _
    Private Shared Function ShowWindow(ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
    End Function


    Private Sub FragMsnIMButton_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        oMessenger = New MessengerAPI.Messenger
    End Sub

    Private Sub oMessenger_OnIMWindowCreated(ByVal pIMWindow As Object) Handles oMessenger.OnIMWindowCreated
        'ShowWindow(pIMWindow.hwnd, 2) ' maximize the window so that it works
        Dim newBtn As Object
        Dim imhwnd As Long
        newBtn = New FragMsnIMButton ' create a copy of FragMsnIMButton
        imhwnd = pIMWindow.hwnd
        SetParent(newBtn.btnFrag.hwnd, imhwnd)
        newBtn.btnFrag.left = 13500 'Moving the textbox under the display picture
        newBtn.btnFrag.top = 2800 ' ^^ look up
    End Sub
11-29-2005 08:32 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