AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

cal and notes

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
just_in
Guest





PostPosted: Thu Sep 29, 2005 6:47 am    Post subject: cal and notes Reply with quote

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

PostPosted: Thu Sep 29, 2005 2:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
garry



Joined: 19 Apr 2005
Posts: 1030
Location: switzerland

PostPosted: Sat Oct 01, 2005 11:35 am    Post subject: Reply with quote

Thank you beardboy, very useful
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group