Growl, MCE popup

65 views
Skip to first unread message

chefb...@gmail.com

unread,
May 3, 2012, 9:41:19 AM5/3/12
to growl-fo...@googlegroups.com
Hello! I have recently learned (basic) vbscripting. I realize that the MCE plugin was written third party by treason, however when I get my scripts to use the growlnotify.exe to force a popup, the first line in the alert is always. Growl notify. My question is: how can I edit these caption, and text lines in vbscript?
Right now I can make the text lines say "hello world" but like I said the caption is always "growlnotify".
Thanks again for this great application, I use it everyday!

Sent from my BlackBerry device on the Rogers Wireless Network

Andy Cater

unread,
May 3, 2012, 10:34:38 AM5/3/12
to growl-fo...@googlegroups.com
Check out the command line help for growlnotify  - I think you need to change the title  /t

--
You received this message because you are subscribed to the Google Groups "growl for windows" group.
To post to this group, send email to growl-fo...@googlegroups.com.
To unsubscribe from this group, send email to growl-for-wind...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/growl-for-windows?hl=en.


Benjamin Anderson

unread,
May 3, 2012, 3:58:37 PM5/3/12
to growl-fo...@googlegroups.com
Thank you for point out the cmdline switches but I'm still having trouble with my script.
 
Maybe you can see something that I'm not understanding. Like Whgere do the switches go? I tried everything...
 
<Code Start>
 
Set WshShell = Wscript.CreateObject("Wscript.Shell")
MessageSender = "C:\Users\Benjamin\Desktop\New folder\growlnotify.exe"
Talker = "C:\Program Files\Amulet Devices\Amulet.Talker.exe"

  
Response = "Hello"

 
 
Dim Cmdline
Dim WshShell
set WshShell = wscript.CreateObject("wscript.shell")
Cmdline = chr(34) & MessageSender & chr(34) & " " & Response
WshShell.Run(Cmdline)

<Code End>
 
Thanks again...
--
Benjamin Anderson

Peter Sinnott

unread,
May 3, 2012, 4:17:41 PM5/3/12
to growl-fo...@googlegroups.com
I think 

MessageSender = "C:\Users\Benjamin\Desktop\New folder\growlnotify.exe /t:'Something' "


Alternatively you could try 
 

Benjamin Anderson

unread,
May 3, 2012, 5:04:47 PM5/3/12
to growl-fo...@googlegroups.com
It's strange I get an error with the:
 
 WsShell.run(Cmdline)
 
if I try and add the /t:'something' line.

Alan Montgomery

unread,
May 3, 2012, 5:50:37 PM5/3/12
to growl-fo...@googlegroups.com
On Thu, 03 May 2012 22:04:47 +0100, Benjamin Anderson
<chefb...@gmail.com> wrote:

Try
Response = "/t:Title Hello"
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Benjamin Anderson

unread,
May 3, 2012, 7:36:59 PM5/3/12
to growl-fo...@googlegroups.com
Here is how I fixed the problem.
I gave each switch a name in the cmdline. It works horray!!
 
Thanks again!
 
 
 
 
Set ObjShell = Wscript.CreateObject("Wscript.Shell")

MessageSender = "C:\Users\Benjamin\Desktop\New folder\growlnotify.exe"
Talker = "C:\Program Files\Amulet Devices\Amulet.Talker.exe"


Growlnotify = " /t:'Hello' "  
Response = "Hello"


 

 

 


Cmdline = chr(34) & MessageSender & chr(34) & " " & Growlnotify & " " & Response
ObjShell.Run(Cmdline)


--
Benjamin Anderson

Benjamin Anderson

unread,
May 3, 2012, 7:39:45 PM5/3/12
to growl-fo...@googlegroups.com
Growl doesn't like it when the VBScript has the icon as a name and then put in to the cmdline though
 
Example:
 
Appicon = "/i:"Whatever dir"
 
if I place the appicon into the cmline Growlnotify will crash.
Just thought I'd let you guys know.
--
Benjamin Anderson

Brian Dunnington

unread,
May 3, 2012, 7:46:25 PM5/3/12
to growl-fo...@googlegroups.com
I think it is an issue with spaces and quotation marks. Essentially,
what you are trying to do is build up a complete command line, but in
doing so, you have to correctly enclose paths that have spaces with
quotation marks. The Chr(34) method is also inserting quotation marks,
so you might end up with something like this:

"C:\Users\Benjamin\Desktop\New folder\growlnotify.exe" /t:Hello /i:My
Pictures\image.png

But that is not valid since the space in 'My Pictures' will be treated
as an argument separator. You would have to enclose your path in
quotation marks as well, something like this as an end result:

"C:\Users\Benjamin\Desktop\New folder\growlnotify.exe" /t:Hello /i:"My
Pictures\image.png"

Benjamin Anderson

unread,
May 3, 2012, 7:52:17 PM5/3/12
to growl-fo...@googlegroups.com
I'll give that a try right away.
 
Also If you could answer one more question.
 
The switch named /:cu callbackurl
 
Will that take you to acertain folder etc?
 
the reasonI ask is I think I can call back a certain page in Media Center with a command line switch from MCE.
 
It gets a little confusing.
 
Exapmle:
 
TVSeries = " 'c:\Windows\ehome\ehshell.exe' /entrypoint:{ce32c570-4bec-4aeb-ad1d-cf47b91de0b2}\{a6bcbd7e-dac5-405e-8f6f-6fb61c90933e}"'
Callback = "/cu:TVSeries"
 
Cmdline = " & callback

Brian Dunnington

unread,
May 3, 2012, 8:00:20 PM5/3/12
to growl-fo...@googlegroups.com
The callback url has to be something that is in a url format, ex:
protocol:address

So, you *can* pass something like "file:///c:\somefile.txt" and it
will open with the default app for that file type. However, if you
pass something as a url that is an executable, I am not sure of the
behavior honestly (though I could have sworn we have had a similar
discussion in the past on this group).

In the end, the callback url is verified to be formatted like a url,
and then that is passed to Process.Start() which is controlled by the
OS. At that point, pretty much anything you could paste it into the
'Run' box should work, so that is one easy way to test our your
command.

chefb...@gmail.com

unread,
May 3, 2012, 8:06:06 PM5/3/12
to growl-fo...@googlegroups.com
Thank you that really helps! Maybe I'll try a shortcut or something. File:///shortcut.ink
The shortcut will have the switch.
Perhaps I'll post my final script.
Right now it will tell you if new TV shows are available. A sort of recently added for MCE. Should be cool
Thanks again!

Sent from my BlackBerry device on the Rogers Wireless Network

Jason Plum

unread,
May 4, 2012, 12:36:17 PM5/4/12
to growl-fo...@googlegroups.com
If I remember correctly, file:// is possibly filtered for security purposes?

chefb...@gmail.com

unread,
May 4, 2012, 12:38:30 PM5/4/12
to growl-fo...@googlegroups.com
I actually got it working thank you. I've decided to go without the link. My script can watch folders for new files but it only runs once. I'm not sure where to add the loop.
Not sure if you have a moment to help, but I could post the script.
Reply all
Reply to author
Forward
0 new messages