Two problems irking me - 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: WLM Plus! Help (/forumdisplay.php?fid=12)
+----- Thread: Two problems irking me (/showthread.php?tid=74057)
Two problems irking me by MeEtc on 04-30-2007 at 05:57 PM
I guess its time I got these two things remedied...
First problem I have, is that all of the exclamation commands that I send (ex: !np for the NowPlaying script, but is not limited to this) will be parsed on my end, as well as for my contact. I'm using the timestamps with SP, might this be the problem? If not, what can I do to fix?
Second problem: Due to a dodgy wireless connection, I have a problem of also losing my WLM connection. When WLM reconnects, it will always set my status to online, instead of whatever status I was previously at before being disconnected (Custom status too, but I know there isn't a fix for that yet, or is there?) any way of setting the status the way it was before I get disconnected?
RE: Two problems irking me by TheGuruSupremacy on 04-30-2007 at 07:17 PM
quote: Originally posted by MeEtc
First problem I have, is that all of the exclamation commands that I send (ex: !np for the NowPlaying script, but is not limited to this) will be parsed on my end, as well as for my contact. I'm using the timestamps with SP, might this be the problem? If not, what can I do to fix?
quote: Originally posted by Matty
CookieRevised's reply to [Fix] Problem with OnEvent_ChatWndRecieveMessage's Origin
quote: Originally posted by Meetc
Second problem: Due to a dodgy wireless connection, I have a problem of also losing my WLM connection. When WLM reconnects, it will always set my status to online, instead of whatever status I was previously at before being disconnected (Custom status too, but I know there isn't a fix for that yet, or is there?) any way of setting the status the way it was before I get disconnected?
I don't know if it work..but i should work Remember Status By CookieRevised
RE: Two problems irking me by MeEtc on 04-30-2007 at 07:33 PM
ok, problem two is close enough to being fixed.
would I just copy Cookie's code and paste it in the script somewhere for the first problem??
RE: Two problems irking me by TheGuruSupremacy on 04-30-2007 at 07:38 PM
quote: Originally posted by MeEtc
ok, problem two is close enough to being fixed.
would I just copy Cookie's code and paste it in the script somewhere for the first problem??
Yes .I hope to have been helpful
RE: Two problems irking me by MeEtc on 04-30-2007 at 08:06 PM
nope, didn't work right
quote: PONG! says (4:51 PM):
!np
Adam / MeEtc says (4:51 PM):
NP: Depeche Mode - Precious (Commuter Mix) (Streaming for 94:43 from http://relay.ispfr.radioabf.net:8000 )
!np
NP: Depeche Mode - Precious (Commuter Mix) (Streaming for 94:54 from http://relay.ispfr.radioabf.net:8000 )
PONG! says (4:51 PM):
NP: Depeche Mode - Precious (Commuter Mix) (Streaming for 94:54 from http://relay.ispfr.radioabf.net:8000 )
"pong!' is a trashing account of mine, i used polygamy. but it does not have a custom name. My guess is that I just put the code in the wrong place / wrong file
RE: RE: Two problems irking me by TheGuruSupremacy on 04-30-2007 at 08:28 PM
quote: Originally posted by MeEtc
nope, didn't work right
quote: PONG! says (4:51 PM):
!np
Adam / MeEtc says (4:51 PM):
NP: Depeche Mode - Precious (Commuter Mix) (Streaming for 94:43 from http://relay.ispfr.radioabf.net:8000 )
!np
NP: Depeche Mode - Precious (Commuter Mix) (Streaming for 94:54 from http://relay.ispfr.radioabf.net:8000 )
PONG! says (4:51 PM):
NP: Depeche Mode - Precious (Commuter Mix) (Streaming for 94:54 from http://relay.ispfr.radioabf.net:8000 )
"pong!' is a trashing account of mine, i used polygamy. but it does not have a custom name. My guess is that I just put the code in the wrong place / wrong file
Try my fixed script It should work
RE: Two problems irking me by MeEtc on 04-30-2007 at 08:35 PM
i would, but i'm using a different version. can you just post what you edited, so that I can change it?
RE: Two problems irking me by TheGuruSupremacy on 04-30-2007 at 08:47 PM
quote: Originally posted by MeEtc
i would, but i'm using a different version. can you just post what you edited, so that I can change it?
to main.js at the bottom put:
var aSent = new Array();
then:
code: function OnEvent_ChatWndSendMessage(wnd,message){
aSent[wnd.Handle] = message;
if(message.match(/\(!WAT\)/gi)){
return message.replace(/\(!WAT\)/gi,sendCurrentSong('Winamp',prefs.get('wat')));
}else if(message.match(/\(!IWAT\)/gi)){
return message.replace(/\(!IWAT\)/gi,sendCurrentSong('iTunes',prefs.get('wat')));
}else if(message.match(/\(!WWAT\)/gi)){
return message.replace(/\(!WWAT\)/gi,sendCurrentSong('WMP',prefs.get('wat')));
}else if(message.match(/\(!JWAT\)/gi)){
return message.replace(/\(!JWAT\)/gi,sendCurrentSong('jetAudio',prefs.get('wat')));
}else if(message.match(/\(!MWAT\)/gi)){
return message.replace(/\(!MWAT\)/gi,sendCurrentSong('MusicMonkey',prefs.get('wat')));
}
ob = {"text" : false}
triggerEvent("OnEvent_ChatWndSendMessage", wnd, message, ob);
if(ob.text){
return ob.text;
}
switch(message){
case "/pause" : getPlayer().Pause();return '';
case "/play" : getPlayer().Play();return '';
case "/stop" : getPlayer().Stop();return '';
case "/next" : getPlayer().Next();return '';
case "/prev" : getPlayer().Prev();return '';
case "/sendsong" : transferSong(wnd);return '';
case "/lyrics" : openLyricWnd();return'';
}
}
function OnEvent_ChatWndReceiveMessage(wnd, origin, message){
if (aSent[wnd.Handle] === message) {
delete aSent[wnd.Handle];
} else {
var remoteSong = prefs.get('remote/song');
var remoteSend = prefs.get('remote/send');
var remoteShare = prefs.get('remote/shared');
remoteSong = (remoteSong == -1 ) ? "!np" : remoteSong;
remoteSend= (remoteSend == -1 ) ? "!sendsong" : remoteSend;
remoteShare = (remoteShare == -1 ) ? "!addtoshared" : remoteShare;
if(remoteSong != "" && prefs.get('remote/enabled/song')){
if(message.match(new RegExp("^" + remoteSong.preg_quote() + "$","i"))){
wnd.SendMessage(sendCurrentSong());
}
}
if(remoteSend != "" && prefs.get('remote/enabled/send')){
if(message.match(new RegExp("^" + remoteSend.preg_quote() + "$","i"))){
if(!transferSong(wnd,1)){
wnd.SendMessage(prefs.get('notrunning').replace('{player}',"unknown"));
}
}
}
if(remoteShare != "" && prefs.get('remote/enabled/shared')){
if(message.match(new RegExp("^" + remoteShare.preg_quote() + "$","i"))){
copyToShareingFolder(wnd.Contacts, wnd);
}
}
}
}
|