Email RememberTheMilk tasks with AHK

Posted by rajivvishwa On December - 13 - 2008

QuickRTMThere is one good feature in RTM which allows us to submit any tasks via email. This serves very useful for few who can use corporate mails but cant access internet.

Sending tasks in a particular format to your RTMId will do this job, but the bottleneck here is to remember the format of the mail. I’ve written an AHK script which displays a GUI interface to accepts the task details, formats the mail as required by RTM and invoke your default email client. (You need AutoHotKey to run the source code)

Note*: Put your RTMid where it is mentioned at the comment of the source code before running QuickRTM.

QuickRTM Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
;
; QuickRTM v 1.0
; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
; Author:         Rajiv Vishwa
;
; Script Function:
;	QuickRTM is used to create tasks in RTM with the help of GUI controls.
; 	This is done by invoking email client with and use RTM formats
;
 
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#SingleInstance,Force
#NoTrayIcon
SetBatchLines,-1
AutoTrim, on
 
;--------Your RTMid here-------
RTMid = rajivvishwa+0b81be@rmilk.com
;------------------------------
 
Gui, Add, Text, section w60, RTMid:
Gui, Add, Text, w60, Task:
Gui, Add, Text, ys w200, %RTMid%
Gui, Add, Edit, w200 vTask, Task Name...
Gui, Add, Text, xm section w60, DueDate:
Gui, Add, DateTime, ys w175 vDate, dd-MMM-yyyy, dddd
FormatTime, DueDate1,, dd-MMM-yyyy
Gui, Add, ComboBox, w175 vDueDate2, Today|Tomorrow|Next Week
Gui, Add, Radio, ys+5 vDueRadio checked
Gui, Add, Radio, y+13
Gui, Add, Text, xm section w60, List:
Gui, Add, DropDownList,ys w105 vList, Inbox||Work|Personal
Gui, Add, Text, ys w30, Priority:
Gui, Add, DropDownList, ys w40 vPriority, 1|2||3|4
Gui, Add, Text, xm section w60, Tags:
Gui, Add, Edit, ys w200 vTags, tag1 tag2
Gui, Add, Edit, xm w270 h60 vNotes, Notes...
Gui, Add, Button, xm section w100, &Submit
Gui, Add, Pic, ys w60, %A_WorkingDir%\QuickRTM.jpg
Gui, Add, Button, ys w100, &Cancel
 
START:
Gui, Show, w300, QuickRTM
WinActivate QuickRTM
Return
 
ButtonSubmit:
Gui, submit
 
if (Notes = "Notes..." or Notes="")
{
	Notes=Sent from QuickRTM
}
if (Task = "Task Name..." or Task="")
{
	Msgbox, 64,, Have you really entered the Task?
	goto START
}
if (tags = "tag1 tag2")
{
	tags=
}else{
	tags = Tags: %tags%`%0A`%0A
}
if (DueRadio = 1 and duedate2!="")
{
	Msgbox, 64,, Error!!! `r`n`r`n Custom duedate field not empty!... `r`n For custom duedate please select radio2...
	goto START
}
 
if DueRadio = 1
{
Body = Due: %duedate1%`%0A`%0APriority: %priority%`%0A`%0AList: %list%`%0A`%0A%tags%---`%0A`%0A%notes% `%0A`%0A-end-`%0A`%0A
}else{
Body = Due: %duedate2%`%0A`%0APriority: %priority%`%0A`%0AList: %list%`%0A`%0A%tags%---`%0A`%0A%notes% `%0A`%0A-end-`%0A`%0A
}
 
Run mailto:%RTMid%?subject=%task%&body=%body%
ExitApp
 
ButtonCancel:
GuiClose:
ExitApp

Download this file : Download

  • http://movie-critic.net/ Dag

    Great post, thanks for the info

  • http://movie-critic.net Dag

    Great post, thanks for the info

Subscribe RSS
Follow me on TwitterTechnoratiYoutube VidsLinkedIn ProfileDelicious