Author Topic: Growl & HFS via hfs.events - Windows Notifications  (Read 3453 times)

0 Members and 1 Guest are viewing this topic.

Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
  • Posts: 1232
  • ....... chut ! shh!
    • View Profile
Growl & HFS via hfs.events - Windows Notifications
« on: October 16, 2009, 11:25:27 PM »
Salut à tous!  ;)
   
I just found the Growl software; Perhaps you already know it, this was not my case.
This program allows you to view programs events in the notification zone of Windows.
It's possible of use it via hfs.events file with HFS:

Download and install Growl:

http://www.growlforwindows.com/gfw/

After install, load it and set it as follows:

- In the Display tab, choose the display style that you want
- In the Security tab, check Allow network notifications & Allow notifications from websites

(info:right-click on the tray icon of Growl for deactivate the notifications...)
   
This is a minimum setting that lets you use Growl in conjunction with HFS.
Other possibilities exist, such as the forwarding of notifications to another computer, to a mail box ... etc.
You will discover for yourself the other options.
*************************************************

Some examples of possible events in hfs.events file (Alt+F6):

Quote
[+start]
{.exec|"C:\Program Files\Growl for Windows\growlnotify.exe" /t:"HFS" /i:"c:\icon\HFS.png" "HFS is launched!".}

Result:


Quote
[+quit]
{.exec|"C:\Program Files\Growl for Windows\growlnotify.exe" /t:"HFS" /i:"c:\icon\HFS.png" "HFS is closed!".}

Result:


Quote
[+download completed]
{.set|itemname|%item-name%.}
{.exec|"C:\Program Files\Growl for Windows\growlnotify.exe" /t:"%user% download!    %time%" /i:"c:\icon\HFS.png" "\n%user% has downloaded:\n\n{.^itemname.}\nIn this folder:\n%folder%\n\n".}

Result:


Quote
[+upload completed]
{.set|itemname|%item-name%.}
{.exec|"C:\Program Files\Growl for Windows\growlnotify.exe" /t:"HFS UPLOAD!   %time%" /i:"c:\icon\HFS.png" "%user%@%ip% has uploaded this file:\n\n%folder-resource%\{.^itemname.}\n\nSpace disk free: %diskfree%\n".}

Result:


Other events...

Quote
[+server start]
{.exec|"C:\Program Files\Growl for Windows\growlnotify.exe" /t:"HFS   %time%" /i:"C:\icon\HFS.png" "The Server is ON!".}

Quote
[+server stop]
{.exec|"C:\Program Files\Growl for Windows\growlnotify.exe" /t:"HFS   %time%" /i:"C:\icon\HFS.png" "The Server is OFF!".}
...
*************************************************

Check out the list below to see which applications already support Growl for Windows:

http://www.growlforwindows.com/gfw/apps.aspx

*************************************************

Growl additionals "Displays":

http://www.growlforwindows.com/gfw/displays.aspx

*************************************************

The possible arguments in the command line (for growlnotify/.exe/.com):

http://www.growlforwindows.com/gfw/help/growlnotify.aspx

*************************************************

For developers:

http://www.growlforwindows.com/gfw/developers.aspx

Growl Notification Transport Protocol (GNTP) - v1.0

http://www.growlforwindows.com/gfw/help/gntp.aspx

*************************************************
If this can be useful...(?)  :)
« Last Edit: July 28, 2010, 10:44:55 PM by SilentPliz »

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: Growl & HFS via hfs.events - Windows Notifications
« Reply #1 on: October 17, 2009, 01:55:12 PM »
great potential
thanks for sharing

Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
  • Posts: 1232
  • ....... chut ! shh!
    • View Profile
Re: Growl & HFS via hfs.events - Windows Notifications
« Reply #2 on: October 22, 2009, 05:12:11 PM »
...
Free notifications text

Edited : March-4-2010

This message is updated for help you to use encrypted messages
:

To incorporate into your templates with the permissions (macro) of your choice, don't forget:



Quote
***************************************

<form method='post' id='notification'>
  <br />
{.repeat|2|&nbsp;.}<input type="text" name="notifytitle" value="{.!Notification title.}" onclick="if(this.value=='{.!Notification title.}')this.value=''" style="background-color:#fff; border:2px solid #BBF;" size="40"></b>
  <br />

  <br />
{.repeat|2|&nbsp;.}{.!Notification text.}:<br />
{.repeat|2|&nbsp;.}<TEXTAREA NAME="notifytext" wrap="soft"></TEXTAREA>
<p>{.repeat|2|&nbsp;.}<input type="submit" name="growl" value="{.!Notify.}">
  <br />
</form>

***************************************

[special:begin]

{.$special:forms.}

[special:forms]
{.if|{.and| {.postvar|notifytitle.} | {.filename|{.postvar|growl.}.} .}|{:
{.exec|"C:\Program Files\Growl for Windows\growlnotify.exe" /t:"{.postvar|notifytitle.}   %time%" /i:"C:\icon\HFS.png" /pass:"secret" /enc:"AES" /hash:"SHA512" "{.postvar|notifytext.}".}
:}/if.}

***************************************

[style.css|no log]
.............
.............
textarea {width:326px; height:150px; background-color:#fff; border:2px solid #BBF;}




Green = Change your paths, if necessary.
Orange =  Optional
/i: = icon ...Optional

Red = Encrypted messages ... Optional
- In the example above the password is the word : secret and this password is also settled in Growl like in the picture below :



----------------------------------------------------
     /pass:password

     /enc:algorithm      The encryption algorithm to use.
                          Valid values: NONE|DES|3DES|AES
                          If a value other than NONE is provided, the
                          /pass and /hash switches must also be included.
                          Default: NONE

     /hash:algorithm      The hashing algorithm to use.
                          Valid values: MD5|SHA1|SHA256|SHA512
                          This value is only used if the /pass switch is also
                          set.
                          Default: MD5


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

/i:icon              
The icon to show for the notification.
Must be a valid file type (png, jpg, gif, ico).
Can be any of the following:
- absolute url (http://domain/image.png)
- absolute file path (c:\temp\image.png)
- relative file path (.\folder\image.png) (relative file paths
 must start with a dot (.) and are relative to growlnotify's location.
        
Note: Icons specified as urls will be passed as urls (links).
Icons specified as local files (either absolute or relative) will besent as binary data.
Default: no icon

    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.




... http://www.growlforwindows.com/gfw/help/growlnotify.aspx
« Last Edit: March 05, 2010, 12:36:26 AM by SilentPliz »

Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
  • Posts: 1232
  • ....... chut ! shh!
    • View Profile
Re: Growl & HFS via hfs.events - Windows Notifications
« Reply #3 on: October 23, 2009, 07:34:55 PM »
The form included in the default template...
! Think, if necessary, to modify the paths in the [special:forms] section of template.



******************************************************
Test:


HFS.EVENTS
Quote
[+start]
{.exec|"C:\Program Files\Growl for Windows\growlnotify.exe" /t:"HFS   %time%" /i:"c:\icon\HFS.png" "HFS is Started !".}

[+server start]
{.exec|"C:\Program Files\Growl for Windows\growlnotify.exe" /t:"HFS   %time%" /i:"C:\icon\HFS.png" "The server is ON!".}

[+server stop]
{.exec|"C:\Program Files\Growl for Windows\growlnotify.exe" /t:"HFS   %time%" /i:"C:\icon\HFS.png" "The server is OFF!".}

[+download completed]
{.set|itemname|%item-name%.}
{.exec|"C:\Program Files\Growl for Windows\growlnotify.exe" /t:"%user% download!    %time%" /i:"c:\icon\HFS.png" "\n%user% has downloaded:\n\n{.^itemname.}\nIn this folder:\n%folder%\n\n".}

[+upload completed]
{.set|itemname|%item-name%.}
{.exec|"C:\Program Files\Growl for Windows\growlnotify.exe" /t:"%user% upload!   %time%" /i:"c:\icon\HFS.png" "%user%@%ip% has uploaded this file:\n\n%folder-resource%\{.^itemname.}\n\nSpace disk free: %diskfree%\n".}

[+quit]
{.exec|"C:\Program Files\Growl for Windows\growlnotify.exe" /t:"HFS   %time%" /i:"c:\icon\HFS.png" "HFS is Closed !".}
« Last Edit: July 28, 2010, 10:28:51 PM by SilentPliz »

Offline Dragon_Hunter

  • Occasional poster
  • *
  • Posts: 52
    • View Profile
Re: Growl & HFS via hfs.events - Windows Notifications
« Reply #4 on: March 04, 2010, 05:19:37 PM »
Hey !  worked on events for the new tpl files you've made for Growl for Windows ?

Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
  • Posts: 1232
  • ....... chut ! shh!
    • View Profile
Re: Growl & HFS via hfs.events - Windows Notifications
« Reply #5 on: March 04, 2010, 05:26:42 PM »
The events do not need to change ... adds just the red switches in your template.

Change also the word secret by your password.

Offline Dragon_Hunter

  • Occasional poster
  • *
  • Posts: 52
    • View Profile
Re: Growl & HFS via hfs.events - Windows Notifications
« Reply #6 on: March 04, 2010, 05:42:46 PM »
 i couldn't find where i should change the secret to my password in "Nexr_TPL_Fun_Mod.tpl"

but i found it in "Default_with_notification_form.tpl"

and thar i'm using "Nexr_TPL_Fun_Mod.tpl" in the hfs

Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
  • Posts: 1232
  • ....... chut ! shh!
    • View Profile
Re: Growl & HFS via hfs.events - Windows Notifications
« Reply #7 on: March 04, 2010, 05:57:37 PM »
Find the word secret and replace it with your password.

Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
  • Posts: 1232
  • ....... chut ! shh!
    • View Profile
Re: Growl & HFS via hfs.events - Windows Notifications
« Reply #8 on: March 04, 2010, 06:02:20 PM »
This message is updated for help you to use encrypted messages :

http://www.rejetto.com/forum/index.php/topic,7669.msg1046886.html#msg1046886
« Last Edit: March 06, 2010, 08:42:42 PM by SilentPliz »