Printable Version of Topic

Click here to view this topic in its original format

AMIP Community _ SDK Support _ Events list

Posted by: tobee Oct 9 2008, 12:43 PM

As the title says. Can anyone point me a link or some sort of info about events that amip generates?
To be more specific I want to finish amip mbot script that will change away msg to currently played song.


found those in java files
public static final int AC_EVT_PLAY = 0x0001;
public static final int AC_EVT_START = 0x0008;
public static final int AC_EVT_CHANGE = 0x0080;
public static final int AC_EVT_PLCHANGE = 0x0100;
public static final int AC_EVT_PLREADY = 0x0200;
can you please tell me meaning of those?
not sure which one will be the proper one for my script

Posted by: Serge Oct 9 2008, 12:51 PM

It's not possible to use callbacks in the PHP mbot scripts because PHP is single threaded.

Posted by: tobee Oct 9 2008, 12:55 PM

Is there any workaround/different approach then?

Posted by: tobee Oct 9 2008, 01:27 PM

nvm found amip with mbot integrated install: Miranda IM (automatic installer)
in downloads

If anyone ever needs to use it with different protocols in miranda just add that protocol to the list in amip.php

// away message settings
$enabled['YAHOO']  = false;
$enabled['GG']  = true;
$enabled['MSN']    = false;

$status['YAHOO']   = 'Currently playing: %name';
$status['GG']   = 'Currently playing: %name';
$status['MSN']     = '(8) %name';

$nostatus['YAHOO'] = '';
$nostatus['GG']   = '';
$nostatus['MSN']   = '';

I think that should work for most if not all the protocols
You can enumerate them from mbot console by pasting this script
$echo=print_r($protocols, TRUE);

thanks for a nice plugins Sir!

Powered by Invision Power Board
© Invision Power Services