Shoutbox

Scipts Dont Work with msg plus v5 - 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: Scipts Dont Work with msg plus v5 (/showthread.php?tid=97109)

Scipts Dont Work with msg plus v5 by Yustme on 03-16-2011 at 09:54 PM

I got the same problem with the new version. scripts dont work. i got the vista x64 too.
the script is running fine, pressing a button which belongs to that script doesn't doe anything.

not even displaying an error msg.....

i have msn 2009 v14.0.8117.416


RE: Scipts Dont Work in WLM 2011 by Fike on 03-17-2011 at 12:17 PM

A lot of scripts don't work with the latest WLM w/ messenger plus, it's just the way Microsoft changed some things. The original developer of the scripts (or other good-hearted devs) will update/edit the script and repackage it for us, just be patient.


RE: RE: Scipts Dont Work in WLM 2011 by Yustme on 03-18-2011 at 10:11 PM

quote:
Originally posted by Fike
A lot of scripts don't work with the latest WLM w/ messenger plus, it's just the way Microsoft changed some things. The original developer of the scripts (or other good-hearted devs) will update/edit the script and repackage it for us, just be patient. I'm currently trying to do NudgesToolsScript.

i made this script myself, what do i need to change to make it work?
RE: RE: RE: Scipts Dont Work in WLM 2011 by Fike on 03-18-2011 at 10:34 PM

quote:
Originally posted by Yustme
quote:
Originally posted by Fike
A lot of scripts don't work with the latest WLM w/ messenger plus, it's just the way Microsoft changed some things. The original developer of the scripts (or other good-hearted devs) will update/edit the script and repackage it for us, just be patient. I'm currently trying to do NudgesToolsScript.

i made this script myself, what do i need to change to make it work?

Upload the script as an attachment and me/someone else will take a look.
RE: RE: RE: RE: Scipts Dont Work in WLM 2011 by Yustme on 03-18-2011 at 10:46 PM

quote:
Originally posted by Fike
quote:
Originally posted by Yustme
quote:
Originally posted by Fike
A lot of scripts don't work with the latest WLM w/ messenger plus, it's just the way Microsoft changed some things. The original developer of the scripts (or other good-hearted devs) will update/edit the script and repackage it for us, just be patient. I'm currently trying to do NudgesToolsScript.

i made this script myself, what do i need to change to make it work?

Upload the script as an attachment and me/someone else will take a look.

ok its an auto sign in script for multiple email addresses.
RE: Scipts Dont Work in WLM 2011 by Yustme on 03-18-2011 at 10:47 PM


this is the second file that belongs to the script too.


RE: RE: Scipts Dont Work in WLM 2011 by Fike on 03-18-2011 at 10:55 PM

quote:
Originally posted by Yustme

this is the second file that belongs to the script too.

Could you please zip all of the scripts files?
RE: RE: RE: Scipts Dont Work in WLM 2011 by Yustme on 03-18-2011 at 11:07 PM

quote:
Originally posted by Fike
quote:
Originally posted by Yustme

this is the second file that belongs to the script too.

Could you please zip all of the scripts files?

i tried that, it wasn't allowed, the file type was .7z
RE: Scipts Dont Work in WLM 2011 by Menthix on 03-19-2011 at 02:12 AM

quote:
Originally posted by Yustme
it wasn't allowed, the file type was .7z
Just rename it to .zip. Or better, make a proper .zip :p.
RE: RE: RE: RE: Scipts Dont Work in WLM 2011 by Fike on 03-19-2011 at 09:49 AM

quote:
Originally posted by Yustme
quote:
Originally posted by Fike
quote:
Originally posted by Yustme

this is the second file that belongs to the script too.

Could you please zip all of the scripts files?

i tried that, it wasn't allowed, the file type was .7z

Go to C:\Program Files\Yuna Software\WLM-Scripts\yourscriptname. Make a ScriptInfo.xml (see Packaging your script in the docs), zip it with WinZip/WinRAR and change the file extension to .plsc

Then upload and we can install it and take a look :)
RE: Scipts Dont Work with msg plus v5 by Yustme on 03-19-2011 at 10:58 AM


ok here it is, you have to add the email addresses manually in the script itself all the way at the top where it says

'var emailList = [ 'all email addresses here' ];'

separated by a comma.

i did made an interface for it, but i didnt got it to work back then, and i never intended to release this script for public.


RE: RE: Scipts Dont Work with msg plus v5 by Fike on 03-19-2011 at 11:04 AM

quote:
Originally posted by Yustme

ok here it is, you have to add the email addresses manually in the script itself all the way at the top where it says

'var emailList = [ 'all email addresses here' ];'

separated by a comma.

i did made an interface for it, but i didnt got it to work back then, and i never intended to release this script for public.

Err... http://screencast.com/t/IZ7kxEyOCx

Don't worry, I'll see if I can extract it :P

EDIT: You made it a RAR, that's why. Just for future reference (in case you may be thinking of submitting a script), all script packs should be ZIPS, not RARS. And also, should have "ScriptInfo.xml" included to tell Messenger Plus! what the name, version etc. is.
RE: Scipts Dont Work with msg plus v5 by CookieRevised on 03-19-2011 at 11:23 AM

quote:
Originally posted by Yustme
I got the same problem with the new version. scripts dont work. i got the vista x64 too.
the script is running fine, pressing a button which belongs to that script doesn't doe anything.

not even displaying an error msg.....

i have msn 2009 v14.0.8117.416
Start by using using the correct registry paths.
The Plus!5 registry path is different than used by Plus!4.
RE: Scipts Dont Work with msg plus v5 by Fike on 03-19-2011 at 11:24 AM

Not sure exactly what the scripts purpose is but try this.

quote:
Originally posted by Fike
Not sure exactly what the scripts purpose is but try this.
To automatically signin multiple accounts when Messenger starts (making fully use of the polygamy feature in Plus!). However, such scripts have been made in the past and they always end up being buggy since it is very hard to make something like that to always work properly in every situation (the same with this script; it will fail in some situations... but as long as it is for private use only and he has set up WLM in the proper way it may work for him).

---------------


PS:
Javascript code:
if(WLMRunning() < 2)    {
        if(WLMRunning() < maxMsnWindows)

Doesn't make much sense though since maxMsnWindows is always bigger than 2 anyways.
RE: RE: Scipts Dont Work with msg plus v5 by Fike on 03-19-2011 at 11:24 AM

quote:
Originally posted by CookieRevised
quote:
Originally posted by Yustme
I got the same problem with the new version. scripts dont work. i got the vista x64 too.
the script is running fine, pressing a button which belongs to that script doesn't doe anything.

not even displaying an error msg.....

i have msn 2009 v14.0.8117.416
Start by using using the correct registry paths.
The Plus!5 registry path is different than used by Plus!4.

ah yeah don't think I did that actually lol :P
RE: Scipts Dont Work with msg plus v5 by Spunky on 03-19-2011 at 12:24 PM

You should also use backslashes for the WLM path in the ExecuteWLM function (should actually be double backslashes "c:\\...")

As Cookie said, the reg paths are wrong... use MsgPlus.ScriptRegPath


RE: RE: RE: Scipts Dont Work with msg plus v5 by Yustme on 03-19-2011 at 12:42 PM

quote:
Originally posted by Fike
quote:
Originally posted by Yustme

ok here it is, you have to add the email addresses manually in the script itself all the way at the top where it says

'var emailList = [ 'all email addresses here' ];'

separated by a comma.

i did made an interface for it, but i didnt got it to work back then, and i never intended to release this script for public.

Err... http://screencast.com/t/IZ7kxEyOCx

Don't worry, I'll see if I can extract it :P

EDIT: You made it a RAR, that's why. Just for future reference (in case you may be thinking of submitting a script), all script packs should be ZIPS, not RARS. And also, should have "ScriptInfo.xml" included to tell Messenger Plus! what the name, version etc. is.

the doc said to zip it up and rename it to .plcs or something. i use 7zip, should be the same right?

quote:
Originally posted by Fike
Not sure exactly what the scripts purpose is but try this.

can you tell me what you changed?

quote:
Originally posted by CookieRevised
quote:
Originally posted by Fike
Not sure exactly what the scripts purpose is but try this.
To automatically signin multiple accounts when Messenger starts (making fully use of the polygamy feature in Plus!). However, such scripts have been made in the past and they always end up being buggy since it is very hard to make something like that to always work properly in every situation (the same with this script; it will fail in some situations... but as long as it is for private use only and he has set up WLM in the proper way it may work for him).

---------------


PS:
Javascript code:
if(WLMRunning() < 2)    {
        if(WLMRunning() < maxMsnWindows)

Doesn't make much sense though since maxMsnWindows is always bigger than 2 anyways.

well it works, it always has.

that < 2 was test code and also, it started out by itself as soon as msn starts. but that was the wrong way. also that code has been commented out.

now it starts after a button is pressed.
quote:
Originally posted by Spunky
You should also use backslashes for the WLM path in the ExecuteWLM function (should actually be double backslashes "c:\\...")

As Cookie said, the reg paths are wrong... use MsgPlus.ScriptRegPath

is that the only thing that changed? because if i reinstall msg plus 5 i dont wanna do a system restore. takes forever ;(

and what reg paths do you mean? this one:

Registry_SetKeyValue()
RE: RE: RE: Scipts Dont Work with msg plus v5 by Fike on 03-19-2011 at 01:35 PM

quote:
Originally posted by Yustme
quote:
Originally posted by Fike
Not sure exactly what the scripts purpose is but try this.

can you tell me what you changed?

Did it work for you?
RE: RE: RE: RE: Scipts Dont Work with msg plus v5 by CookieRevised on 03-19-2011 at 04:24 PM

quote:
Originally posted by Yustme
the doc said to zip it up and rename it to .plcs or something. i use 7zip, should be the same right?
"To ZIP up" means using the ZIP compression format. It doesn't mean compressing the files with whatever compression method you want.

So it doesn't matter what program you use to ZIP files, as long as it is the ZIP format.

Note that you actually do not need any external program for to create ZIP files either. Windows can make ZIP files out-of-the-box. Simply select the files you want to ZIP in Windows Explorer, right click your selection, choose 'Send To' and select 'Compressed Folder'.

;)

quote:
Originally posted by Yustme
is that the only thing that changed? because if i reinstall msg plus 5 i dont wanna do a system restore. takes forever ;(
System Restore should never be used in any case.
If you want to remove Plus! simply remove it using the uninstaller from Windows 'Remove Program and Files'. The same for Windows Live Messenger.
The same for reinstalling; Simply reinstall the programs using their respective setups.

You should only use System Restore when you encounter a severe system crash or whatever. It is NOT a backup tool, NOR an uninstaller!

This said, I don't see why you should re-install or remove anything. The problems are in your own coded script, nothing else.

quote:
Originally posted by Yustme
and what reg paths do you mean? this one:
Registry_SetKeyValue()
That is not a reg path, that is a function.
I mean the hard coded registry paths you have store in the variables WLMKey, MPLkey, etc

EDIT: I see that you've changed MPLkey in your new version, but note that it now wont work on Plus!4 though.

quote:
Originally posted by Yustme
well it works, it always has.
that < 2 was test code and also, it started out by itself as soon as msn starts. but that was the wrong way. also that code has been commented out.
It didn't work; it couldn't be working in Plus!5. Second, Always remember it is absolute vital that if you want people to help you debug your script that you provide all and the completely accurate up-to-date script files, even if you think some files don't matter (they usually do matter). It is not possible to properly help out otherwise.

PS: That '< 2' check in the Initialize event shouldn't be testcode. It is actually what you need to use instead of if(WLMRunning() < maxMsnWindows). Aka, it is the if(WLMRunning() < maxMsnWindows) which is part of the trouble too. The reason being that you should only start this script once! And it is this one instance which should drive all the other Messenger instances. Remember that each time a Messenger instance starts all the Plus! scripts will run too, hence all the other "AutoSignin" scripts should NOT perform any actions (unless you want to end up in a dead loop). Only the first one which started the whole chain should open the other Messenger instances. As such, you MUST use '< 2' (or '== 1') and not '< maxMsnWindows'.

;)
RE: RE: RE: RE: RE: Scipts Dont Work with msg plus v5 by Yustme on 03-19-2011 at 11:02 PM

quote:
Originally posted by CookieRevised
quote:
Originally posted by Yustme
the doc said to zip it up and rename it to .plcs or something. i use 7zip, should be the same right?
"To ZIP up" means using the ZIP compression format. It doesn't mean compressing the files with whatever compression method you want.

So it doesn't matter what program you use to ZIP files, as long as it is the ZIP format.

Note that you actually do not need any external program for to create ZIP files either. Windows can make ZIP files out-of-the-box. Simply select the files you want to ZIP in Windows Explorer, right click your selection, choose 'Send To' and select 'Compressed Folder'.

;)

oh yea, i forgot windows has zip compression, my bad!

quote:
Originally posted by CookieRevised

quote:
Originally posted by Yustme
is that the only thing that changed? because if i reinstall msg plus 5 i dont wanna do a system restore. takes forever ;(

System Restore should never be used in any case.
If you want to remove Plus! simply remove it using the uninstaller from Windows 'Remove Program and Files'. The same for Windows Live Messenger.
The same for reinstalling; Simply reinstall the programs using their respective setups.

You should only use System Restore when you encounter a severe system crash or whatever. It is NOT a backup tool, NOR an uninstaller!

This said, I don't see why you should re-install or remove anything. The problems are in your own coded script, nothing else.


i've done that in the passed, just uninstall and reinstall a version i had before, but i encountered some problems which i dont remember and i had to do a system restore to fix it.

quote:
Originally posted by CookieRevised

quote:
Originally posted by Yustme
and what reg paths do you mean? this one:
Registry_SetKeyValue()
That is not a reg path, that is a function.
I mean the hard coded registry paths you have store in the variables WLMKey, MPLkey, etc

EDIT: I see that you've changed MPLkey in your new version, but note that it now wont work on Plus!4 though.

quote:
Originally posted by Yustme
well it works, it always has.
that < 2 was test code and also, it started out by itself as soon as msn starts. but that was the wrong way. also that code has been commented out.
It didn't work; it couldn't be working in Plus!5. Second, Always remember it is absolute vital that if you want people to help you debug your script that you provide all and the completely accurate up-to-date script files, even if you think some files don't matter (they usually do matter). It is not possible to properly help out otherwise.

PS: That '< 2' check in the Initialize event shouldn't be testcode. It is actually what you need to use instead of if(WLMRunning() < maxMsnWindows). Aka, it is the if(WLMRunning() < maxMsnWindows) which is part of the trouble too. The reason being that you should only start this script once! And it is this one instance which should drive all the other Messenger instances. Remember that each time a Messenger instance starts all the Plus! scripts will run too, hence all the other "AutoSignin" scripts should NOT perform any actions (unless you want to end up in a dead loop). Only the first one which started the whole chain should open the other Messenger instances. As such, you MUST use '< 2' (or '== 1') and not '< maxMsnWindows'.

;)

i didnt changed it yet, someone else changed it and uploaded it here for me to test it if it works.

no it doesnt work in version 5, i was talking about version 4. it works and always has.

about your PS, the maxmsnwindows is a constant variable. whats wrong with using constants? although im not a javascript programmer, thought its a good practice.

the script starts launching the msn windows after a button is pressed, it doesnt do this automatically when msn windows starts which is what you thought.

i uploaded all scripts that matter, just 2 files. what makes you think i left out some files?

quote:
Originally posted by Fike
quote:
Originally posted by Yustme
quote:
Originally posted by Fike
Not sure exactly what the scripts purpose is but try this.

can you tell me what you changed?

Did it work for you?

i havent tested it, because i didnt install version 5 yet, but i will asap if i checked out the new register settings.
RE: Scipts Dont Work with msg plus v5 by CookieRevised on 03-20-2011 at 12:04 AM

quote:
Originally posted by Yustme
i didnt changed it yet, someone else changed it and uploaded it here for me to test it if it works.

oh... yeah... I was in a rush and didn't noticed the poster.

Either way, Fike's change will work for Plus!5, but it wont for Plus!4. Instead you need to check the version of Plus! and use the appropiate path accordingly.

quote:
Originally posted by Yustme
about your PS, the maxmsnwindows is a constant variable. whats wrong with using constants? although im not a javascript programmer, thought its a good practice.
Yes, I know maxmsnwindows is a constant variable and there is nothing wrong with using constants? But that's not the point at all though. Doing:
If (X<2) {
    If (X<8) {
makes little (read: no) sense at all. Passing the first check tells you that X is smaller than 2 (thus 1).
And if it is smaller than 2 it is of course also smaller than 8 (aka: maxmsnwindows).
Hence If (X<8) is redundant.

But, evermore, you shouldn't be using If (X < maxmsnwindows) in the OnInitialize event in the first place because that is not the proper place to do it. You said If (X < 2) was a test code. But in fact, that line of 'test code' should actually be the one you must use instead of If (X < maxmsnwindows). This because it is only the very first instance of this script which needs to start the other Messenger instances. All other instances of this script, which start because you open more instances of Messenger, should be prevented from executing the code (otherwise you end up in a loop). In other words, the script should only be started once, aka you need to use If (X < 2). That's the logic you should be using for something like this.
RE: RE: Scipts Dont Work with msg plus v5 by Yustme on 03-20-2011 at 09:06 AM

quote:
Originally posted by CookieRevised
quote:
Originally posted by Yustme
i didnt changed it yet, someone else changed it and uploaded it here for me to test it if it works.

oh... yeah... I was in a rush and didn't noticed the poster.

Either way, Fike's change will work for Plus!5, but it wont for Plus!4. Instead you need to check the version of Plus! and use the appropiate path accordingly.

quote:
Originally posted by Yustme
about your PS, the maxmsnwindows is a constant variable. whats wrong with using constants? although im not a javascript programmer, thought its a good practice.
Yes, I know maxmsnwindows is a constant variable and there is nothing wrong with using constants? But that's not the point at all though. Doing:
If (X<2) {
    If (X<8) {
makes little (read: no) sense at all. Passing the first check tells you that X is smaller than 2 (thus 1).
And if it is smaller than 2 it is of course also smaller than 8 (aka: maxmsnwindows).
Hence If (X<8) is redundant.

But, evermore, you shouldn't be using If (X < maxmsnwindows) in the OnInitialize event in the first place because that is not the proper place to do it. You said If (X < 2) was a test code. But in fact, that line of 'test code' should actually be the one you must use instead of If (X < maxmsnwindows). This because it is only the very first instance of this script which needs to start the other Messenger instances. All other instances of this script, which start because you open more instances of Messenger, should be prevented from executing the code (otherwise you end up in a loop). In other words, the script should only be started once, aka you need to use If (X < 2). That's the logic you should be using for something like this.

i got into the code again and figure out why i did that back then. the 2 nested if's.

ya i know about the nested if's, this was done to make the script auto start the signin procedure, but i changed it to make it listen to a button press. and now i'm missing that button.

have to fix the interface too now and i'll dive into the code again making it more 'logical'.

never mind, i posted the wrong code, the last upload missed 4 files.

@CookieRevised,

the function:

function OnEvent_Initialize(MessengerStart)
{}

is empty. sorry for the confusions.

@Fike,

your fix fixed the problem, thanks!