What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Script Request] Growl Notifications

[Script Request] Growl Notifications
Author: Message:
samus
New Member
*


Posts: 7
Joined: Aug 2009
O.P. [Script Request] Growl Notifications
Hey,
I've used this site once before trying to get Growl Notifications and tried to adapt RunIt. The thread is here.
http://shoutbox.menthix.net/showthread.php?tid=91899

Basically, I failed miserably trying to do so and I was hoping somebody else could put one together please? (A)

This site here (http://mutualexclusion.blogspot.com/2008/07/integ...essenger-with.html) has instructions to start Growl Notifications and more, but I can't work out how to set up and adapt it.

If anyone has any spare time I'd really appreciate help on creating this myself or an actual script.

Thanks,
Samus
01-17-2010 12:36 AM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [Script Request] Growl Notifications
I can take a look at this for you in a few hours when I wake up
<Eljay> "Problems encountered: shit blew up" :zippy:
01-17-2010 02:31 AM
Profile PM Find Quote Report
samus
New Member
*


Posts: 7
Joined: Aug 2009
O.P. RE: [Script Request] Growl Notifications
Thanks. :)
I've had a go at doing this through the Growl command line tool and a shell object, but I get an error when I try to run it.

My code:
code:
OnEvent_ContactSignin(Email){
var shell = new ActiveXObject("wscript.shell");
var cmd = 'growlnotify "' + Email + 'signed in"';
shell.Run(cmd);
}


I'm not sure why this doesn't work. Another problem with using this method is that a shell window will pop up every time someone signs in so I want to try and integrate it with another API of theirs.
The list of APIs is here:http://www.growlforwindows.com/gfw/developers.aspx

They have a Javascript one but I don't really understand it as it uses a flash file to send the notification or something..  [Image: huh.gif]

Thanks for replying,
Samus
01-17-2010 10:53 AM
Profile E-Mail PM Find Quote Report
samus
New Member
*


Posts: 7
Joined: Aug 2009
O.P. RE: [Script Request] Growl Notifications
Sorry but BUMP. Could someone explain whats wrong with my code please..?
Sorry to be a pain.
01-21-2010 08:30 PM
Profile E-Mail PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [Script Request] Growl Notifications
You forgot the "function" keyword before your function definition.
js code:
function OnEvent_ContactSignin(Email){
    var shell = new ActiveXObject("WScript.Shell");
    var cmd = 'growlnotify "' + Email + 'signed in"';
    shell.Run(cmd);
}
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
01-21-2010 09:17 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Script Request] Growl Notifications
js code:
function OnEvent_ContactSignedIn(sEmail) {
    new ActiveXObject('WScript.Shell').Exec('C:\\Program Files\\Growl for Windows\\growlnotify.exe "'+sEmail+' signed in"');
}

You may need to change the path if you installed it into a different location.

This post was edited on 01-21-2010 at 09:29 PM by matty.
01-21-2010 09:28 PM
Profile E-Mail PM Find Quote Report
samus
New Member
*


Posts: 7
Joined: Aug 2009
O.P. RE: [Script Request] Growl Notifications
Cheers guys I've got it working now :D. I've added new functions etc. for different features and I'm going to try and modify it so that a command window doesn't pop up every time.
Any one know if its possible to do? With a batch file it would be @echo off wouldn't it? I can't seem to do this through the script.

Once I've got it all working well I'll package it up and anyone who wants Growl for Messenger can have it. :)

Cheers Samus
01-23-2010 11:27 AM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [Script Request] Growl Notifications
quote:
Originally posted by samus
Cheers guys I've got it working now :D. I've added new functions etc. for different features and I'm going to try and modify it so that a command window doesn't pop up every time.
Any one know if its possible to do? With a batch file it would be @echo off wouldn't it? I can't seem to do this through the script.

Once I've got it all working well I'll package it up and anyone who wants Growl for Messenger can have it. :)

Cheers Samus

What version of windows are you using? It doesn't pop up under Windows 7 and the script works as it should

EDIT:
quote:
Originally posted by http://www.growlforwindows.com/gfw/help/growlnotify.aspx

NOTES

     There are two ways to use growlnotify.
     
     1. growlnotify.com - Can be used from the console or included in batch scripts. Writes
                          success/failure messages to the console when the notification is
                          sent. Equivalent to using just 'growlnotify' with no extension.

     2. growlnotify.exe - Can be used with tools like AutoHotkey or launched from other GUI
                          applications. Will not spawn a console window, so notifications can
                          be sent silently
. No success or failure report is available. Must
                          explicitly include the .exe extension in order for Windows to
                          recognize which version to use.

This post was edited on 01-23-2010 at 12:50 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
01-23-2010 12:47 PM
Profile PM Find Quote Report
samus
New Member
*


Posts: 7
Joined: Aug 2009
O.P. RE: [Script Request] Growl Notifications
Ahh. My bad for not reading that. I'll continue working on this when I've got time and release it soon.
Samus
01-23-2010 01:18 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On