VBScript Class for Prowl

An iPhone client for Growl available on the App Store.
Posts: 1
Joined: Wed Aug 11, 2010 2:30 pm

VBScript Class for Prowl

Postby Bond » Wed Aug 11, 2010 2:43 pm

I threw together a VBScript class for Prowl today, if anyone is interested. I use a lot of WSH/VBS at my job and thought this could come in handy. It should work as an 'include' in a WSF file or ASP page. Or just copy/paste into your VBS script.

The class file and a sample WSF are attached. Here's the code from the WSF that utilizes the class:

Code: Select all

<job id="Test">

   <script language="VBScript" src="prowl.vbs"/>
   <script language="VBScript">

      Option Explicit
      WScript.Quit Main

      Function Main()

         With New Prowl
            ' Step 1:  Set your API key and, optionally, your provider key.
            .ApiKey = "0000000001111111111222222222233333333334"
            .ProviderKey = ""
            ' Step 2:  Call the Push method.  All parameters are required.
            Dim bSuccess
            bSuccess = .Push(0, "My App", "My Event", "My Message")

            ' Step 3:  If unsuccessful, view the Prowl response...
            If Not bSuccess Then MsgBox .Response, vbInformation, "Response"
         End With

      End Function

(1.43 KiB) Downloaded 311 times

Return to “Prowl”

Who is online

Users browsing this forum: No registered users