Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snaka/gntpcom
COM component for GNTP(Growl Notification Transport Protocol).
https://github.com/snaka/gntpcom
Last synced: 11 days ago
JSON representation
COM component for GNTP(Growl Notification Transport Protocol).
- Host: GitHub
- URL: https://github.com/snaka/gntpcom
- Owner: snaka
- Created: 2010-04-10T19:40:33.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-07-13T12:21:11.000Z (over 14 years ago)
- Last Synced: 2023-04-10T08:42:31.753Z (over 1 year ago)
- Language: C
- Homepage: http://d.hatena.ne.jp/snaka72/
- Size: 10 MB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.txt
Awesome Lists containing this project
README
# GNTP/Com #
COM component for GNTP## What's this ##
This is COM componet for GNTP send.## Install ##
1. Download zip file [here](http://github.com/snaka/GNTPCom/downloads)
2. Unzip file
3. Run install.bat## Usage ##
### With VBScript ###
set g = CreateObject("GNTPCom.Growler")
g.Init "Sample", Array("notify", "warn", "error")
g.Notify "notify", "Greeting", "Hello, from VBScript!"
set g = Nothingset g2 = CreateObject("GNTPCom.Growler")
g2.InitWithAddress "localhost", "secret", "Sample", Array("notify", "warn")
g2.Notify "notify", _
"My Blog", "今日もスミマセン。", _
"http://www.st-hatena.com/users/sn/snaka72/profile.gif", _
"http://d.hatena.ne.jp/snaka72"
set g2 = Nothing### With JScript ###
var g = new ActiveXObject("GNTPCom.Growler");g.Init("JScript sample", SA("notify", "warn"));
g.Notify("notify", "Greeting", "Hello, from VBScript!");var g2 = new ActiveXObject("GNTPCom.Growler");
g2.InitWithAddress("localhost", "secret", "Sample", SA("notify", "warn"));
g2.Notify("notify",
"My Blog", "今日もスミマセン。",
"http://www.st-hatena.com/users/sn/snaka72/profile.gif",
"http://d.hatena.ne.jp/snaka72"
);// Utility for create SAFEARRAY object
function SA() {
var temp = new ActiveXObject("Scripting.Dictionary");
for (var i = 0; i < arguments.length; i++)
temp.add(i, arguments[i]);
return temp.Items();
}### Use UDP protocol (Mac Growl compatible) ###
set g = CreateObject("GNTPCom.Growler")
g.UseUDP = true
g.InitWithAddress "192.168.0.xxx", "", "Sample", Array("notify", "warn", "error")
g.Notify "notify", "Greeting", "Hello, from VBScript!"
set g = Nothing![Growl on Mac](http://gyazo.com/edd232c3404fdae2a98bf4cee00525ff.png)
## License ##
The MIT License
Copyright (c) 2010 snaka
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.