Shoutbox

Is it possible to add custom 'commands'? - 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: Skinning (/forumdisplay.php?fid=41)
+----- Thread: Is it possible to add custom 'commands'? (/showthread.php?tid=83030)

Is it possible to add custom 'commands'? by Yom on 04-08-2008 at 11:18 AM

Hello, i started WLM skinning there is a few days,

First i would like to thanks anyone for the great skinning documentation, especially Patchou and Willz.


Now here is my question(s):

I would like to integrate custom buttons with custom 'commands'. Those commands should virtually press a key or a combination of keys on the keyboard. In fact, my idea is to make buttons for controlling Media keys (for Winamp, WMP etc). Ideally, i would like to make options for what keys to what buttons, like:


code:
Play/Pause:  <checkbox: Ctrl> <checkbox: Alt> <checkbox: Shift> <listbox: all keyboard keys>
Next:        <checkbox: Ctrl> <checkbox: Alt> <checkbox: Shift> <listbox: all keyboard keys>
etc..

Do you think it is possible? I highly doubt as i haven't see anything related to it in the documentation, but this is something i really would like possible.

Thanks for helping me if you can :)
RE: Is it possible to add custom 'commands'? by segosa on 04-08-2008 at 11:27 AM

I don't really know but I would guess not since you can't embed any code anywhere.


RE: Is it possible to add custom 'commands'? by Willz on 04-08-2008 at 01:39 PM

quote:
Originally posted by Yom
Hello, i started WLM skinning there is a few days,

First i would like to thanks anyone for the great skinning documentation, especially Patchou and Willz.


Now here is my question(s):

I would like to integrate custom buttons with custom 'commands'. Those commands should virtually press a key or a combination of keys on the keyboard. In fact, my idea is to make buttons for controlling Media keys (for Winamp, WMP etc). Ideally, i would like to make options for what keys to what buttons, like:


code:
Play/Pause:  <checkbox: Ctrl> <checkbox: Alt> <checkbox: Shift> <listbox: all keyboard keys>
Next:        <checkbox: Ctrl> <checkbox: Alt> <checkbox: Shift> <listbox: all keyboard keys>
etc..

Do you think it is possible? I highly doubt as i haven't see anything related to it in the documentation, but this is something i really would like possible.

Thanks for helping me if you can :)

Nope, not possible. Not unless you write a plugin thats specifically does what you want.
RE: Is it possible to add custom 'commands'? by Yom on 04-08-2008 at 04:59 PM

Aww too bad :( ok thanks anyway :)


RE: Is it possible to add custom 'commands'? by aNILEator on 04-08-2008 at 05:06 PM

If you want to try this, I suggest talking to deAd, he knows a bit about overlaying command buttons into messenger with scripts.


RE: Is it possible to add custom 'commands'? by vikke on 04-08-2008 at 06:24 PM

If you know programming, just apply a hook onto the contact list or whatever window you added the button to, then in your callback function just look for the WM_COMMAND message, and check if the ID matches the CmdId attribute the <button> has (for example <Button CmdId=10001>). If it does, do whatever the button should do. :)
Also make sure that the message doesn't get confused with another message from Messenger Plus! or Messenger itself.
1337 is taken by Stuffplug 3 :P