Shoutbox

How can i add a cmdid custom by myself? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Skype & Live Messenger (/forumdisplay.php?fid=10)
+----- Thread: How can i add a cmdid custom by myself? (/showthread.php?tid=91603)

How can i add a cmdid custom by myself? by wonderfall on 07-22-2009 at 07:51 AM

How can i add a new cmdid value custom by myself?  how can i determine the currect value of cmdid=?

thanks a lot.


RE: How can i add a cmdid custom by myself? by djdannyp on 07-22-2009 at 08:43 AM

quote:
Originally posted by wonderfall
How can i add a new cmdid value custom by myself?  how can i determine the currect value of cmdid=?

thanks a lot.

Why do you want to use a custom cmdid?  Any function that exists already has a cmdid
RE: RE: How can i add a cmdid custom by myself? by wonderfall on 07-22-2009 at 09:09 AM

quote:
Originally posted by djdannyp
quote:
Originally posted by wonderfall
How can i add a new cmdid value custom by myself?  how can i determine the currect value of cmdid=?

thanks a lot.

Why do you want to use a custom cmdid?  Any function that exists already has a cmdid

i am very interesting about what happen in backgrand. i think the plus! is a messenger addon, but how could it embed these command id's value into messenger.exe, is there some place to register these value?:)

RE: How can i add a cmdid custom by myself? by djdannyp on 07-22-2009 at 11:29 AM

Do you mean in a Skin, or  in order to create your own messenger add-on?


RE: How can i add a cmdid custom by myself? by wonderfall on 07-22-2009 at 12:27 PM

i guess it could not be in a skin, because these id value maybe already fixed in plus! code, in general, we just use these value in own skin configuration files, isn't it?
so, i enjoy to find out how plus! addon told messenger to active with these id value? or any others tichque there.


RE: How can i add a cmdid custom by myself? by CookieRevised on 07-22-2009 at 12:35 PM

since you asked, in a nutshell:

You simpy choose the number of your likings. Can be any number as long as it isn't already in use.

Then you use some Windows APIs to make a (sub)menu item. One of the parameters of those Windows APIs to make a menu is that cmdid.

Now, when you click on a menu the cmdid is passed (again as a parameter) to the procedure which handles all the events occuring in the window.

Since that cmdid is passed, the routines inside the procedure know what to do next.

Though, all this information is only usefull if you are able to make your own addon (or program) which is capable of integrating itself inside Messenger.
Simply adding your own (sub)menu item, which is easy, isn't going to work. You also need to integrate/replace the routine to catch the menu (and thus the cmdid) being pressed by the user.

More details can be found here:
http://msdn.microsoft.com/en-us/library/ms646977(VS.85).aspx

---

So, making your own custom menu (with your own cmdids) is by far the easiest thing. The hard thing is to inject your program/routine which handles the cmdids into the Messenger program. Usually this is done by subclassing or superclassing. This is by no means an easy job and requires a lot of programming skills (and a hell of a lot of technical reading and understanding, see the links).

You can't do anything with this information in regards to skinning though. And even with Plus! scripting this is very hard todo (you actually can't do it with pure script code alone).


RE: How can i add a cmdid custom by myself? by wonderfall on 07-23-2009 at 02:39 AM

CookieRevised
thannnnnnk you very much for those information. i also found an useful  article in codeproject site.  It seems that i have long way to go. what ever, thank you and djdannyp.