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 

Reminder Utility, simple reminder tool

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
keybored



Joined: 18 Jun 2006
Posts: 67
Location: Phoenix, AZ

PostPosted: Sun Oct 15, 2006 6:26 pm    Post subject: Reminder Utility, simple reminder tool Reply with quote

This is a simple script, but useful. Thought someone might use it.

Code:

/*
Reminder Utility v1.0
 by Eric Ose

Remind yourself about stuff with a timer. Input a note, then the number of minutes to wait.
*/


#SingleInstance off

InputBox, Reminder, Type a reminder note, , , 250, 100
InputBox, UserInput, How long from now (minutes), , , 250, 100
if ErrorLevel <> 0
   MsgBox, CANCEL was pressed.
else
NEW1 := UserInput * 60000
Sleep, %NEW1%
SoundBeep, 400, 500
SoundBeep, 420, 500
SoundBeep, 440, 500
SoundBeep, 460, 500
MsgBox, %Reminder%
ExitApp
Back to top
View user's profile Send private message
slomz



Joined: 03 Sep 2006
Posts: 608
Location: Iowa, U.S.

PostPosted: Mon Oct 16, 2006 12:07 am    Post subject: Reply with quote

You could make gui for this and add many reminders. Good starting script Very HappyVery Happy.
Back to top
View user's profile Send private message AIM Address
bits



Joined: 17 Nov 2006
Posts: 7

PostPosted: Sun May 11, 2008 8:10 pm    Post subject: Need help for multiple Countdown reminder timers Reply with quote

Hi,

Thanks to "Eric Ose" for this script. I am using it with a CTRL+ALT+i combination.

The problem I am facing is that once I have set a reminder. Thereafter I can't set another reminder by pressing CTRL+ALT+i.

I guess maybe the 1st reminder script is already in sleep.

Is there a way out? Can I set more than a few countdown timer reminders by any means?

Thanks for all the help.

Code:

^!i::
InputBox, Reminder, Type a reminder note, , , 250, 100
InputBox, UserInput, How long from now (minutes), , , 250, 100
if ErrorLevel <> 0
{
MsgBox, CANCEL was pressed.
}
else
{
NEW1 := UserInput * 60000
Sleep, %NEW1%
SoundPlay, C:\Temp\downloads\Borealis_sound_theme-0.9a\Borealis\Question.wav
MsgBox, %Reminder%
}
return
Back to top
View user's profile Send private message
jballi



Joined: 01 Oct 2005
Posts: 297
Location: Texas, USA

PostPosted: Sun May 11, 2008 9:58 pm    Post subject: Re: Need help for multiple Countdown reminder timers Reply with quote

bits wrote:
The problem I am facing is that once I have set a reminder. Thereafter I can't set another reminder by pressing CTRL+ALT+i.

I guess maybe the 1st reminder script is already in sleep.

Is there a way out? Can I set more than a few countdown timer reminders by any means?

Multiple timers are the way to go. Here's just one example of how to do it (not completely tested)...
Code:
#NoEnv
#SingleInstance Force
#Persistent
Reminder1:=false
Reminder2:=false
Reminder3:=false
return

^!i::
if Reminder1 and Reminder2 and Reminder3
    {
    msgbox All Reminder timers have been used. Try again later.
    return
    }

InputBox, Note, Type a reminder note, , , 250, 100
If Errorlevel
    return

InputBox, UserInput, How long from now (minutes), , , 250, 100
if ErrorLevel
    return

if not Reminder1
    {
    Reminder1:=true
    Note1:=Note
    SetTimer Reminder1,% -(UserInput*60000)
    }
 else
    if not Reminder2
        {
        Reminder2:=true
        Note2:=Note
        SetTimer Reminder2,% -(UserInput*60000)
        }
     else
        {
        Reminder3:=true
        Note3:=Note
        SetTimer Reminder3,% -(UserInput*60000)
        }
 
return


Reminder1:
msgbox 64,Reminder1,%Note1%
Reminder1:=false
return

Reminder2:
msgbox 64,Reminder2,%Note2%
Reminder2:=false
return

Reminder3:
msgbox 64,Reminder2,%Note3%
Reminder3:=false
return
Back to top
View user's profile Send private message
bits



Joined: 17 Nov 2006
Posts: 7

PostPosted: Sun May 11, 2008 10:18 pm    Post subject: Reply with quote

Thanks JBalli.

Your post gave a me a new approach (Using Timers) to the problem.

However having a limitation even though if its higher number like 5 or 10... it hurts.

I am still looking for a less limited solution.

I will see help on timers, and if I find some solution, I will post it. But help from everyone else is very much welcome.
Back to top
View user's profile Send private message
jballi



Joined: 01 Oct 2005
Posts: 297
Location: Texas, USA

PostPosted: Sun May 11, 2008 10:33 pm    Post subject: Reply with quote

bits wrote:

However having a limitation even though if its higher number like 5 or 10... it hurts.

I am still looking for a less limited solution.

You're right. Multiple timers allow you to create a fast but limited solution to the problem. For an unlimited number of reminders you would need to use several array variables to store your reminders (notes, expiration time, etc.) and a single timer to periodically check (every 15 seconds or so) to see if an any of the reminder timers have expired.

Good luck!
Back to top
View user's profile Send private message
keybored



Joined: 18 Jun 2006
Posts: 67
Location: Phoenix, AZ

PostPosted: Wed May 14, 2008 2:16 am    Post subject: glad it's used Reply with quote

bits, thanks for the feedback. I remember doing the victory dance when I got this working. I still use it and it works.

To get as many as you want set it up as a separate script and use your hotkey to run it. You can put #NoTrayIcon to avoid multiple H icons.

It would also be nice to see how many pending reminders there are and when.

I think a Toaster popup would be nice addition;
http://www.autohotkey.com/forum/viewtopic.php?t=23303

If anyone else have thoughts on possible features please post them.
Back to top
View user's profile Send private message
bits



Joined: 17 Nov 2006
Posts: 7

PostPosted: Wed May 14, 2008 4:08 am    Post subject: Re: glad it's used Reply with quote

keybored wrote:
bits, thanks for the feedback. I remember doing the victory dance when I got this working. I still use it and it works.

To get as many as you want set it up as a separate script and use your hotkey to run it. You can put #NoTrayIcon to avoid multiple H icons.

It would also be nice to see how many pending reminders there are and when.

I think a Toaster popup would be nice addition;
http://www.autohotkey.com/forum/viewtopic.php?t=23303

If anyone else have thoughts on possible features please post them.


Thanks Eric, You perfectly solved the problem in hand.
My life is going to get so much more managed now !!

Now I am using

Code:

^!i::
Run, "c:\.....somepath.....\reminder_util.ahk"
return


and in reminder_util.ahk
Code:

#NoTrayIcon

InputBox, Reminder, Type a reminder note, , , 250, 100
InputBox, UserInput, How long from now (minutes), , , 250, 100

if ErrorLevel <> 0
{
   MsgBox, CANCEL was pressed.
}
else
{
   NEW1 := UserInput * 60000
   Sleep, %NEW1%
   SoundPlay, C:\Temp\downloads\Borealis\Question.wav
   Sleep, 1000
   SoundPlay, C:\Temp\downloads\Borealis\Question.wav
   Sleep, 1000
   MsgBox, %Reminder%
}

ExitApp




I can now have any number of countdown reminders running in the background. Very neat!!


I tried using Toaster popup instead of MsgBox, but I would rather like ot have a custom dialog with a snooze option.

If I get any success I will post it here.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions 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