Jump to content



Photo

Growl for Windows UDF


  • Please log in to reply
2 replies to this topic

#1 0xcafebabe

0xcafebabe

    Seeker

  • New Members
  • 1 posts

Posted 16 May 2009 - 07:40 PM

Growl for Windows is a notification system which can let you know when any event occurs with a subtle notification. The rest of the time, Growl stays out of your way. If you do not know Growl, see Growl for Windows

Growl libraries exist for many popular programming languages, and here is one for AutoIt. You can use to to send notifications and you can get asynchronous call backs when the user clicks the notification.

Examples:
Local $notifications[1][1] = [["Notifcation"]] Local $id=_GrowlRegister("AutoIt", $notifications, "http://www.autoitscript.com/autoit3/files/graphics/au3.ico") _GrowlNotify($id, $notifications[0][0], "Simple notification", "Text of the simple notification") _GrowlNotify($id, $notifications[0][0], "Notification with Click", "CLICK ME", "", "ID", "Context", "ContextType") Sleep(10000); Enough time for user to click Func AutoIt_CLICK($id, $context, $contextType)    MsgBox(0, "AutoIt_CLICK", "$id="&$id&@CRLF&"$context="&$context&@CRLF&"$contextType="&$contextType) EndFunc


To use the UDF, you also need the ASock UDF

I made it for Gmail Growl.

Have fun!

Attached Files







#2 GoogleDude

GoogleDude

    Prodigy

  • Active Members
  • PipPipPip
  • 190 posts

Posted 26 March 2010 - 10:27 PM

Awesome! Thanks this is just what I was hoping for and looking for for my next project. I'm hoping it will work with the latest version of autoit.

~GD

#3 jchd

jchd

    Whatever your capacity, resistance is futile.

  • MVPs
  • 3,247 posts

Posted 26 March 2010 - 11:17 PM

That looks great. You should ask a Mod to move the thread to the Example Scripts forum, it would be a much better place for this interesting UDF.

Edited by jchd, 26 March 2010 - 11:22 PM.

SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQL tutorial (covers generic SQL, but most of it apply to SQLite as well)An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious workPCRE v8.32 regexp pattern documentation. AutoIt uses a slightly older version so that more advanced features are not all available.RegExp tutorial: enough to get started




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users