Shoutbox

[Release] Sync - Your Messenger status in Google Talk and Skype! :) - 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: [Release] Sync - Your Messenger status in Google Talk and Skype! :) (/showthread.php?tid=71992)

[Release] Sync - Your Messenger status in Google Talk and Skype! :) by vikke on 02-21-2007 at 02:12 PM

I've been working on this for a while now. :)
It's a rather simple script which does show your Messenger PSM and Name in your custom message in Google Talk. If you're online on Messenger, you will get an green dot in Google Talk, otherwise the red one. It does currently not support DP and probably never will.

Feature list:
Google Talk:

  • Syncs PSM
  • Syncs status
  • Syncs custom status
Skype:
  • Syncs name
  • Syncs PSM
  • Syncs DP

Enjoy!
RE: [Release] GTalkSync - Your Messenger status in Google Talk! :) by linx05 on 02-21-2007 at 02:32 PM

This is similar to the Skype script. Would you add support for status messages?


RE: RE: [Release] GTalkSync - Your Messenger status in Google Talk! :) by vikke on 02-21-2007 at 02:35 PM

quote:
Originally posted by linx05
This is similar to the Skype script. Would you add support for status messages?

Probably, if you tell me what status messages are? :P
RE: [Release] GTalkSync - Your Messenger status in Google Talk! :) by John Anderton on 02-21-2007 at 04:12 PM

I can't seem to import this script. Maybe its because I'm on a beta :dodgy:
Can any other beta tester confirm this? :P


RE: [Release] GTalkSync - Your Messenger status in Google Talk! :) by Eljay on 02-21-2007 at 04:34 PM

Haven't tested it much (I don't even use GTalk, just installed it to test this script :P) but one thing I have noticed is that you don't remove Plus! formatting codes from the username/psm before they are set in GTalk, and it just doesn't look right having formatting codes when they don't actually do any formatting. :P
You can easily remove formatting codes with MsgPlus.RemoveFormatCodes.

Also, just an idea, it might be a nice thing to add if when you change name/status in GTalk, your WLM info updates (although I don't know how easy/possible this would be).

Edit: just another thought, seeing as GTalk can have custom statuses (like personalised statuses in Plus!), maybe implement that as well. (take a look at OnEvent_Enter/ExitPersonalizedStatus events).

----------

quote:
Originally posted by John Anderton
I can't seem to import this script. Maybe its because I'm on a beta :dodgy:
Can any other beta tester confirm this? :P

imports fine here :P

RE: [Release] GTalkSync - Your Messenger status in Google Talk! :) by John Anderton on 02-21-2007 at 04:39 PM

quote:
Originally posted by Eljay
imports fine here :P
May be the update will help 8-) (a)
* John Anderton waits for the download to complete.

quote:
Originally posted by Eljay
Also, just an idea, it might be a nice thing to add if when you change name/status in GTalk, your WLM info updates (although I don't know how easy/possible this would be).
I like that :) And then the custom status' could reflect in GTalk too :cheesy:
RE: [Release] GTalkSync - Your Messenger status in Google Talk! :) by JackBauer on 02-21-2007 at 05:36 PM

looks good. :) I am downloading now


RE: RE: [Release] GTalkSync - Your Messenger status in Google Talk! :) by vikke on 02-21-2007 at 05:45 PM

quote:
Originally posted by John Anderton
I can't seem to import this script. Maybe its because I'm on a beta :dodgy:
Can any other beta tester confirm this? :P

Strange, I see no reason why. ^o)

quote:
Originally posted by Eljay
Haven't tested it much (I don't even use GTalk, just installed it to test this script (Smilie)) but one thing I have noticed is that you don't remove Plus! formatting codes from the username/psm before they are set in GTalk, and it just doesn't look right having formatting codes when they don't actually do any formatting. (Smilie)
You can easily remove formatting codes with MsgPlus.RemoveFormatCodes.

Will be in the 1.1 package! :)

quote:
Originally posted by Eljay
Edit: just another thought, seeing as GTalk can have custom statuses (like personalised statuses in Plus!), maybe implement that as well. (take a look at OnEvent_Enter/ExitPersonalizedStatus events).

I'll see what I can do.

quote:
Originally posted by Eljay
looks good. (Smilie) I am downloading now
Thanks ;)
RE: [Release] GTalkSync - Your Messenger status in Google Talk! :) by John Anderton on 02-22-2007 at 05:21 AM

Yeah its working after the update :P
Hmm its just copy pasting the entire string from messenger to gtalk. If you could actually change gtalk status' (like eljay said) it would be great :)
I like this script and I can't wait for an update :)


RE: [Release] GTalkSync - Your Messenger status in Google Talk! :) by vikke on 02-22-2007 at 05:51 PM

New Update: 1.09.
Changes:
New Interface.
Support for custom status sync.
GMail name changer (BETA).

Please note your email and password is saved in registry without encryption, for now, sorry! :$


RE: [Release] GTalkSync - Your Messenger status in Google Talk! :) by aNILEator on 02-22-2007 at 06:22 PM

just downloaded 1.09 and i keep getting plus alerts pop up with debug written on top with a number inside it :S

also Gtalk's status mesage has () at the end of it :S

Windows Vista Ultimate x64 (6.0.6000)
Windows Live Messenger 8.01.0178
Messenger Plus! Live 4.2 beta


RE: [Release] GTalkSync - Your Messenger status in Google Talk! :) by vikke on 02-22-2007 at 07:17 PM

Sorry, will update now.


RE: [Release] GTalkSync - Your Messenger status in Google Talk! :) by Felu on 02-23-2007 at 05:43 AM

* Felu give vikke Cookie's advise to put only one attachment per thread :P.
Works fine here :D.


RE: [Release] GTalkSync - Your Messenger status in Google Talk! :) by vikke on 02-25-2007 at 06:55 PM

Another release, this time the script is called Sync. That's because it currently changes both Google Talk and Skype. Almost every problem has been fixed. Hope you like it!

Check main post for download.


RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by riahc4 on 02-27-2007 at 12:18 AM

Maybe you should Sync the PSM also for Yahoo! Messenger (some people may still use both clients)


RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by Felu on 02-27-2007 at 02:46 AM

This doesn't seem to work :(. Here is the debug :P.

quote:
Script is starting
Script is now loaded and ready
Function called: OnEvent_Initialize
Error: Invalid root in registry key "HKCU\SOFTWARE\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\Sync\Settings\name@domain.com\cSyncGTalk"..
       Line: 94. Code: -2147024894.
Function OnEvent_Initialize returned an error. Code: -2147352567
Function called: OnGetScriptMenu
Function called: OnEvent_MenuClicked
Error: Invalid root in registry key "HKCU\SOFTWARE\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\Sync\Settings\name@domain.com\cSyncGTalk"..
       Line: 94. Code: -2147024894.
Function OnEvent_MenuClicked returned an error. Code: -2147352567
Function called: OnwSettingsEvent_CtrlClicked
Function called: OnwSettingsEvent_CtrlClicked
Function called: OnwSettingsEvent_CtrlClicked
Function called: OnGetScriptMenu
Function called: OnEvent_MenuClicked
Function called: OnEvent_MyStatusChange
Error: Automation server can't create object.
       Line: 120. Code: -2146827859.
Function OnEvent_MyStatusChange returned an error. Code: -2147352567
Function called: OnEvent_MyStatusChange
Error: Automation server can't create object.
       Line: 120. Code: -2146827859.
Function OnEvent_MyStatusChange returned an error. Code: -2147352567
Function called: OnGetScriptMenu
Function called: OnEvent_MenuClicked
Function called: OnwSettingsEvent_CtrlClicked
Script has been stopped
Script is starting
Script is now loaded and ready
Function called: OnEvent_Initialize
Error: Automation server can't create object.
       Line: 120. Code: -2146827859.
Function OnEvent_Initialize returned an error. Code: -2147352567
First of all you should use try statements for accessing the registry. The key might not exist on the first install.
code:
function LoadSetting (sKey, sDefault){
    var oShell = new ActiveXObject("WScript.Shell");
    try
        return oShell.RegRead(MsgPlus.ScriptRegPath + Messenger.MyEmail + "\\" + sKey);
    catch(error)
        return sDefault;
}
And the second problem is with the ActiveXObject "Skype4COM.Skype". Its just that your dll isn't getting registered properly :(.
RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by Eddie on 02-27-2007 at 04:58 AM

quote:
Originally posted by vikke
New Update: 1.09.
Changes:
New Interface.
Support for custom status sync.
GMail name changer (BETA).

Please note your email and password is saved in registry without encryption, for now, sorry! :$
Would it be possible to make it so when you change status on skype or Google Talk it changes Windows Live Messenger to? :)

RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by aNILEator on 02-27-2007 at 09:03 AM

Yeah would be good to synch DP's, PSM's and Status's between all clients, although i think this should stay as WLM script for now really (WLM being 'The controller' as it were)

Still keep it up, pratise makes perfect blah blah blah :)


RE: RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by vikke on 02-27-2007 at 02:32 PM

quote:
Originally posted by Felu
And the second problem is with the ActiveXObject "Skype4COM.Skype". Its just that your dll isn't getting registered properly :(.

Thanks Felu!
I will fix the registry bug today, however I see no reason why Skype4COM wouldn't register.. I chose it to register in the script installer program :S.

quote:
Originally posted by Shadow
Would it be possible to make it so when you change status on skype or Google Talk it changes Windows Live Messenger to? (Smilie)

Nope, I'm sorry, that's very advanced (I could still do it :)), as I don't have enough time to research and find this, it would be better to have a Skype/Google Talk addon to do that.

Thanks everyone for the feedback.

Edit: New version released: 1.1. The registry bug should be fixed. Check main post.
RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by aNILEator on 02-28-2007 at 12:26 AM

Improve interface (add icons?), separate functions

* aNILEator does a mockup

Mockup Below :)

[Image: attachment.php?pid=793839]

BTW Ver 1.1 fails to start


RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by Felu on 02-28-2007 at 02:46 AM

quote:
Originally posted by vikke
however I see no reason why Skype4COM wouldn't register.. I chose it to register in the script installer program
I had the same problems with my dll which were never sorted out :(. I had to use an exe at last :P.
And the window aNILEator has shown looks nice :). That would be good (Y).

RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by aNILEator on 02-28-2007 at 08:39 AM

quote:
Originally posted by Felu
And the window aNILEator has shown looks nice (Smilie). That would be good :).

(h) just a little time and effort is all that is needed to make a good simple interface.

Shame that this wasn't applied for Windows Vista Messenger 8.1 skin :P
RE: RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by vikke on 02-28-2007 at 09:55 AM

quote:
Originally posted by aNILEator
Improve interface (add icons?), separate functions

* aNILEator does a mockup


Mockup Below :)

[Image: attachment.php?pid=793839]

BTW Ver 1.1 fails to start


Nice! Do you have a XML file for that interface? :)
RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by Felu on 02-28-2007 at 10:01 AM

quote:
Originally posted by vikke
Nice! Do you have a XML file for that interface? :)
If that was just an image, send me the two image for Google Talk and Skype, i'll do the XML :).
RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by aNILEator on 02-28-2007 at 02:46 PM

I only saved it as a png not psd or anything, said i'd do a mockup not the full thing!

as for the images GOOGLE!

get a full page of results just resize them or cut them out of mine 8-)

*cough* lazy geeks *cough* :P

Oh also make the about window work ¬_¬
infact make the cript actually work (I forgot latest version doesn't load at all)


RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by prashker on 03-15-2007 at 07:13 AM

When importing the script I get

quote:
---------------------------
Messenger Plus! Live
---------------------------
The script has been imported but failed to start.
---------------------------
OK   
---------------------------


And if I now try to manually enable the script from Script menu. I get this.

quote:
---------------------------
Messenger Plus! Live
---------------------------
Couldn't start script "Sync".

The script may be defective or you may not have the proper privileges to run scripts.
---------------------------
OK   
---------------------------

Latest WLM
Vista Ultimate RTM
Latest Plus!Live
RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by Felu on 03-15-2007 at 07:23 AM

quote:
Originally posted by SonicSam
When importing the script I get
I think the problem is that the dll doesn't get registered. Can you also tell what do you get in the debug window? Would be helpful for vikke :).
RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by prashker on 03-15-2007 at 07:47 AM

Error: Expected 'catch'.
       Line: 97. Code: -2146827255.


RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by Felu on 03-15-2007 at 07:54 AM

quote:
Originally posted by SonicSam
Error: Expected 'catch'.
       Line: 97. Code: -2146827255.
Vikke is newb. I'll send a new script via WLM and tell Vikke to update the script when he comes online :).
RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by prashker on 03-15-2007 at 08:02 AM

Felu fixed that error but still does not Sync with Skype :p.


RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by aNILEator on 03-15-2007 at 08:03 AM

Fix bugs and then add my interface :P


RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by prashker on 03-16-2007 at 09:34 AM

quote:
Originally posted by aNILEator
Fix bugs and then add my interface :P

Yeah :cheesy:
RE: [Release] Sync - Your Messenger status in Google Talk and Skype! :) by aNILEator on 11-22-2007 at 02:02 AM

Shame Vikke gave up on this :(