Try
OneDay!
It shows the date x days from a given date.
Skrommel
;OneDay.ahk
; Shows the date x days from a given date
;Skrommel @ 2008
#NoEnv
#SingleInstance,Force
SendMode,Input
format=dddd dd. MMMM yyyy
applicationname=OneDay
activeid:=WinExist("A")
WinGetTitle,activetitle,ahk_id %activeid%
Gui,Add,Edit,xm w200 R1 -Wrap Vahead GCALC,0
Gui,Add,UpDown,Range-2147483648-2147483647
Gui,Add,Text,x+10 yp+3,days from
Gui,Add,DateTime,xm w200 Vfrom GCALC,%format%
Gui,Add,Text,x+10 yp+3,is
Gui,Add,Edit,xm w200 Vto
Gui,Add,Button,x+10 W60 GCOPY,&Copy
Gui,Add,Button,x+10 W60 GSEND Default,&Send to
Gui,Add,Statusbar,G1HOURSOFTWARE,www.1HourSoftware.com
Gui,Show,,%applicationname%
Gui,+LastFound
guiid:=WinExist()
hCurs:=DllCall("LoadCursor","UInt",NULL,"Int",32649,"UInt") ;IDC_HAND
OnMessage(0x200,"WM_MOUSEMOVE")
OnExit,EXIT
Return
CALC:
Gui,Submit,NoHide
EnvAdd,from,%ahead%,Days
FormatTime,to,%from%,%format%
GuiControl,,to,%to%
Return
COPY:
Clipboard=%to%
TOOLTIP(to)
Return
SEND:
Gui,Submit
IfWinExist,ahk_id %activeid%
{
WinActivate,ahk_id %activeid%
WinWaitActive,ahk_id %activeid%,,5
}
Send,%to%
Gosub,EXIT
TOOLTIP(tip)
{
SetTimer,TOOLTIPOFF,Off
ToolTip,%tip%
SetTimer,TOOLTIPOFF,3000
}
TOOLTIPOFF:
SetTimer,TOOLTIPOFF,Off
ToolTip,
Return
1HOURSOFTWARE:
Run,www.1HourSoftware.com
Return
WM_MOUSEMOVE(wParam,lParam)
{
Global hCurs
Global guiid
Global activetitle
MouseGetPos,,,mwin,mctrl
If mwin Not in %guiid%
Return
If mctrl In msctls_statusbar321
DllCall("SetCursor","UInt",hCurs)
If mctrl In Button2
TOOLTIP(activetitle)
Return
}
GuiEscape:
GuiClose:
EXIT:
OnMessage(0x200,"")
DllCall("DestroyCursor","Uint",hCurs)
ExitApp