Autohotkey: quick add to google calendar
“AHK is the mail way I interface with my computers these days. Iâ€™ve been looking for a similar idea to send updates to my Google Calendar”
I got the comment above from Billy (along with some much appreciated feedback) Â and I figured a Google Calendar App was worth a shot. Â To be honest, this is an autohotkey script AND a little command line utility in VB to make it work. Â I have not figured out how to call the Google API from autohotkey… Â The good news is that there is no installation required (you’ll need the newest .NET installed) and you just have to move my CLgCAL folder into the script folder of your own scripts…Â If you like this, please check out my main blog for other helpful articles!Google Calendar AHK (1263)
Let me know if you have any trouble – this one is going to take some teamwork to iron out the kinks. Â The default settings use Windows + G to bring up the post window.
PS: Â Here is the VB code for those who are interested…
Imports System Imports System.IO Imports System.Collections Imports System.ComponentModel Imports Google.GData.Client Imports Google.GData.Extensions Imports Google.GData.Calendar Module main Â Â Â Public Sub Main() Â Â Â Â Â Dim vars() As String Â Â Â Â Â Dim myService = New CalendarService("Cal") Â Â Â Â Â Dim myEntry = New EventEntry() Â Â Â Â Â Dim postUri = New Uri("http://www.google.com/calendar/feeds/default/private/full") Â Â Â Â Â vars = Command.Split("_") Â Â Â Â Â Dim username As String = vars(0) Â Â Â Â Â Dim password As String = vars(1) Â Â Â Â Â Dim quickadd As String = vars(2) Â Â Â Â Â myService.setUserCredentials(username, password) Â Â Â Â Â myEntry.QuickAdd = True Â Â Â Â Â myEntry.Content.Content = quickadd Â Â Â Â Â 'Dim createdEntry = (EventEntry) Â Â Â Â Â myService.Insert(postUri, myEntry) Â Â Â End Sub End Module