[ help ] Stop script from running on both msn's - 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: Scripting (/forumdisplay.php?fid=39) +----- Thread: [ help ] Stop script from running on both msn's (/showthread.php?tid=92721) [ help ] Stop script from running on both msn's by CarlosHero on 10-29-2009 at 02:37 PM
I have a script which reads from a txt file when i send the command [read], but because i have the script installed myself to test it when im signed into 2 accounts it doesn't work, how would i make it so the script only runs on the account the message is received on. Also i noticed when i signed into ebuddy to test it i was still signed into 2 accounts and it din't work but id be guessing that would be the same problem. So i just need to know how to make it only run on the account that receives the command. RE: [ help ] Stop script from running on both msn's by Spunky on 10-29-2009 at 03:04 PM You have to check the email of the user running the script. It'll be the only way as scripts run an instance for each instance of WLM open. RE: [ help ] Stop script from running on both msn's by matty on 10-29-2009 at 03:09 PM
js code: Then before doing anything check the variable bEnabled js code: RE: [ help ] Stop script from running on both msn's by CarlosHero on 10-29-2009 at 03:18 PM
Thanks for the replyg guys. code: RE: [ help ] Stop script from running on both msn's by tribbium on 10-29-2009 at 03:38 PM Haven't tested it but, couldn't you write to a file or the registry flagging that the program has been initialized so that other instances can recognize it and not initialize? RE: [ help ] Stop script from running on both msn's by CarlosHero on 10-29-2009 at 03:50 PM I'm not sure mate haven't tried that but wouldn't have a clue where to start to test it. RE: [ help ] Stop script from running on both msn's by matty on 10-29-2009 at 03:58 PM
quote:That would work only if your names are different. But then this isn't exactly the answer to your question. You asked how to make a script work only for a specific email which is what I provided. Not how to reply to a message only if you aren't the original sender. RE: [ help ] Stop script from running on both msn's by CarlosHero on 10-29-2009 at 04:45 PM
Ah sorry if you misunderstood me, what I meant to say was how would I make the script only run on the account the command was received on. Say i was signed in on 2 seperate account without needing to know the email. Like how would I add it to this code: Would this work? code: RE: [ help ] Stop script from running on both msn's by matty on 10-29-2009 at 04:59 PM
quote: js code: You missed the highlighted } RE: [ help ] Stop script from running on both msn's by CarlosHero on 10-29-2009 at 05:11 PM
I tried adding it to this mate code: But when I test it say I'm A sending the commands i see it like A says: hai [read] B says: And B see's it like A says: hai B says: Online But I'm supposed to see it like A says: hai [read] B says: Online and B is supposed to see it like A says: hai B says: Regards, CH RE: [ help ] Stop script from running on both msn's by matty on 10-29-2009 at 08:24 PM Post all of your code. RE: [ help ] Stop script from running on both msn's by CarlosHero on 10-31-2009 at 11:25 AM
Thanks for the quick reply, I think i have something wrong with the code. When i try and read this from the txt file. RE: [ help ] Stop script from running on both msn's by CookieRevised on 10-31-2009 at 11:48 AM
I extremely and very strongly suggest you use the proper syntax '/command' for commands. RE: [ help ] Stop script from running on both msn's by CarlosHero on 10-31-2009 at 12:03 PM If I use those commands would that fix the problem of me getting the blue line? RE: [ help ] Stop script from running on both msn's by CookieRevised on 10-31-2009 at 12:16 PM
Probably not, as those are two different things though. (although I can think of one situation were it might be related: emoticons) RE: [ help ] Stop script from running on both msn's by CarlosHero on 10-31-2009 at 12:25 PM Now my problem is, when I type the command in the chat window when I send the info out of mdr.txt its invisible in both conversations unless i use mattys code with the email. anyway i can do this without the email ? RE: [ help ] Stop script from running on both msn's by matty on 11-02-2009 at 02:23 PM Did you post your code? |