 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
just_in Guest
|
Posted: Thu Sep 29, 2005 6:47 am Post subject: cal and notes |
|
|
Does the calandar work with the edit field?
Like to write notes and when I click on a date on the cal it will open what I wrote.
what I have so far witch is not much.
| Code: |
; Generated using SmartGUI Creator 3.5.1
Gui, Add, Edit, x21 y21 w430 h170,
Gui, Add, Button, x341 y201 w100 h30, Add/Update
Gui, Add, MonthCal, x21 y201 w190 h160,
Gui, Show, x161 y113 h379 w480, Generated using SmartGUI Creator 3.5.1
Return
GuiClose:
ExitApp |
I don't where to start with this. |
|
| Back to top |
|
 |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Thu Sep 29, 2005 2:15 pm Post subject: |
|
|
Here is a basic version of what I think you were looking for.
| Code: | Gui, Add, Edit, x21 y21 w430 h170 vEdit,
Gui, Add, Button, x341 y201 w100 h30 gUpdate, Add/Update
Gui, Add, MonthCal, x21 y201 w190 h160 gCheckDate vDate,
Gui, Show, x161 y113 h379 w480, Generated using SmartGUI Creator 3.5.1
lastdate = %date%
GoSub, CheckDate
Return
GuiClose:
ExitApp
CheckDate:
Gui, Submit, NoHide
if edit <>
{
MsgBox, 4, Save Changes?, Do you want to save any changes to the text?
IfMsgBox, Yes
{
FileDelete, %lastdate%.txt
FileAppend, %edit%`n, %lastdate%.txt
}
}
GuiControl,, Edit
IfExist, %date%.txt
{
FileRead, text, %date%.txt
GuiControl,, Edit, %text%
}
lastdate = %date%
return
Update:
Gui, Submit, NoHide
if edit <>
{
FileAppend, %edit%`n, %date%.txt
}
return |
thanks,
beardboy |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 1030 Location: switzerland
|
Posted: Sat Oct 01, 2005 11:35 am Post subject: |
|
|
| Thank you beardboy, very useful |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|