 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Eedis
Joined: 12 Jun 2009 Posts: 389
|
Posted: Mon Sep 07, 2009 3:36 am Post subject: Methods to do a clock that tells me every hour. |
|
|
The story (Irrelevant, you can skip if you don't care, I just feel like typing something.):
I was laying down in my girlfriends bed the other day. She has these plastic shelving drawer things right by the head of her bed and she has a watch in it. The watch has no strap, thanks to her dog :\. Pretty much she finds it useless and doesn't really care about it and forgets it's in there. It still works and everything and it beeps every hour. The other day we had NOTHING to do. I was just sitting on her bed playing with her dog and she was reading a book. I have an OCD to know what time it is and I hate having to ask for her cell phone or ask her to tell me what time it is because she is reading. She pretty much has no clocks or anything in the house lolz. I was sitting there wondering what time it was but she was already in a pissy mood so I didn't bother. I always forget her watch is in there, but I knew it was passed 2 o'clock. I was also just sitting there thinking of stuff I could program on the computer. I heard the watch beep and I knew it was 3 o'clock. Then I was like, "I have a great idea for a program."
The nitty gritty stuff:
So I was wanting to make a clock that would display a tray tip at every hour. I thought it would be easy and it pretty much is. I was going to put it in the start up folder so I wouldn't have to worry about starting it every time.
Then I thought, the only way I could really have it do that, to my knowledge, would be to program it at every hour. I don't know much about math operators or date and time operators in AHK and I was wondering if there was a much easier or shorter method I could approach this.
I'm not asking you to do any programming at all, I want to research and do the programming myself, for the learns, but I was wondering what your suggestions for the method of getting it to know what time it was and have it display the tooltip every hour.
I was thinking, I could set a timer to display the tool tip every hour, but then it'd be off the hour depending on when it started.
*Yes I know "for the learns" isn't proper English, but who really cares.* _________________ Pylons Are Trapped Balls.
http://www.autohotkey.net/~Eedis/
 |
|
| Back to top |
|
 |
Leef_me
Joined: 08 Apr 2009 Posts: 1158 Location: San Diego, California
|
Posted: Mon Sep 07, 2009 4:52 am Post subject: |
|
|
| Quote: | | So I was wanting to make a clock that would display a tray tip at every hour. | The clocks and watches your hear make a noise "every hour, on the hour"
How do you tell on the hour"
By testing both these variables to see if they are zero: A_Min, A_Sec
But I have a question for you, why not get a watch? $10?, $5? at some discount stores you can get one for $1  |
|
| Back to top |
|
 |
Eedis
Joined: 12 Jun 2009 Posts: 389
|
Posted: Mon Sep 07, 2009 4:55 am Post subject: |
|
|
Lolz, because I need something to program and I don't want to waste money on something tacky that I hate anyways.
*Edit* Oh and listening to loud music. I won't be able to hear the beep. _________________ Pylons Are Trapped Balls.
http://www.autohotkey.net/~Eedis/
 |
|
| 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
|