Monthly Archives: March 2014


Coming Soon!



FAQ is available here.


Chat with other users about Nightcap

Nightcap Support

You can file support tickets and make feature requests by going to the link below:

1. What is Nightcap?

Nightcap is a power saving utility that puts your Windows PC to sleep after a period of inactivity.

2. How does Nightcap work?

Nightcap quietly monitors any mouse or keyboard activity on your PC in order to determine when to put your computer to sleep. Once you stop interacting with your computer, Nightcap takes notice and after a prolonged period of inactivity, it displays a warning message that your computer is about to enter a deep state of rest. You can easily dismiss this message by moving your mouse or pressing a key.

3. Why Nightcap? – A Brief History

Your Windows Desktop uses a lot of power and having it on when no one is using it is wasteful and can make for costly power bills. So, you probably already have configured your PC to sleep by going into the Power Plans system settings, but perhaps you noticed that your Windows desktop stays awake regardless of what power options you choose or tweaks that you make.

That is what happened to me. I spent countless hours tweaking system settings and scouring forums for tips, but nothing worked. I would come into my office in the morning to find the naughty little machines, wide awake. Sometimes I would see my PCs powering down but then waking up moments later by an invisible force. I had enough and wanted to solve this problem once and for all. That is why I wrote Nightcap. Since I created Nightcap, my PCs are always in a sleep state when not in use.

4. Doesn’t Windows already have “Power Plans” to put my computer to sleep?

Yes, but often these power settings “don’t take” and you spend  hours of troubleshooting to figure why. Nightcap provides a better solution by putting your computer to sleep on time, every time. (See Why Night – Brief History).

5. What are the system requirements?

  • Windows Vista
  • Windows 7
  • Windows 8

The following prerequisites are required:

  • Windows Installer 4.5
  • Microsoft .NET Framework 4 (x86 and x64)

6. How much does it cost?

Nightcap is 100% free! It also comes with absolutely no warranty.

7. Where can I download Nightcap?

You can download Nightcap here.

8. Where can I go to provide feedback or get support?

File support tickets and make feature requests by going to the link below:

Ending March Break on a High Note

Ol' School Donuts

Rumour had it that there was a bus with fresh, homemade donuts just off the Bedford Highway across from the Bedford United Church, so we had to go check it out. We packed up our little campers to scope out the scene. Sure enough, there was an “Ol’ School Donuts” bus waiting to take our requests.
Ol' School Donuts Bus

What a great way to finish off a super-fun March Break week!
Strawberries and Cream Donuts

Sent from my totally awesome iPhone!

Experts stumped! Weird trick that increases traffic to your site!

That was pretty much it. Disappointed? Don’t be. Here are some more sites that you simply can’t resist:

  • [expand title=”How centenarians are beating twenty-somethings at their own game“]

    Congratulations! You have fallen for the hook.

    It’s just too tempting, right?!

    How centenarians are beating twenty-somethings at their own game

    Ahh.. I really did want to know more about how those centenarians are winning… I mean beyond outliving us all.

    [Insert ad here]

  • [expand title=”Is your face symmetrical? Learn how your life could depend on it!“]

    Congratulations! You have fallen for the hook.

    Is your face symmetrical? Learn how your life could depend on it!

    Did you really think that your life would depend on your face being symmetrical? Of course not, but probably some part of you was thinking that facial symmetry could be important in ways that you don’t yet fully understand. Am I talking to you from my good side?

    [Insert obnoxious ad here]

  • [expand title=”Dietitians angered over amazing pizza diet weight loss results“]

    Congratulations! You have fallen for the hook.

    [Insert annoying ad here]

    Dietitians angered over amazing pizza diet weight loss results

    Wouldn’t it be great if just for once you could stick it to those smug dietitians who harp about your cholesterol and penchant for pizza. Wow, what a life it would be if you could eat pizza all the time and still lose weight!

  • [expand title=”Astronomers frightened by what they see“]

    Congratulations! You have fallen for the hook.

    [Insert  another annoying ad here]

    Astronomers frightened by what they see

    Who isn’t interested in a good, “The World is Going to End” story? I mean, it’s only a matter of time, right?

    Just the imagery of it all is so tempting. Astronomer’s peering through telescopes and terrified by something, but what has them so afraid? I just need to know!

  • [expand title=”What parents don’t know that could be holding their kids back“]

    Congratulations! You have fallen for the hook!

    What parents don’t know that could be holding their kids back

    And what parent isn’t interested in knowing more about the things that might hold their kids back? These type of articles love to prey upon the insecurities of parents. It implants the idea that for some reason, your kid isn’t going to succeed if you pass on this article.

  • [expand title=”Educators embarrassed to learn about missing weekday“]

    Congratulations! You have fallen for the hook.

    Educators embarrassed to learn about missing weekday

    Really, a missing weekday? How could they miss that?

    I think this headline might grab you because it is appealing to learn about “know-it-all” teachers who don’t know-it-all and in the process are ashamed by what they don’t know.  

     Back > Experts stumped! Weird trick that increases traffic to your site!

  • [expand title=”Man goes sixty days without left sock“]

    Congratulations! You have fallen for the hook.

    [Insert yet another annoying ad here]

     Man goes sixty days without left sock

    What man? How could he possibly go sixty days without a left sock? Why his left sock? Why did he lose his sock? What is this story even about?

    I have so many unanswered question.

  • [expand title=”Get noticed at work without showing up“]

    Congratulations! You have fallen for the hook.

    [Why this would be a perfect opportunity for a well placed ad]

    Get noticed at work without showing up

    How can you get noticed at work without even showing up? This headline is sure to appeal to the Timothy Ferriss fans out there. Certainly you would get noticed for not showing up for work, but probably for all the wrong reasons.

  • [expand title=”Why everything experts have told you could be killing you“]

    Congratulations! You have fallen for the hook.

    [Insert annoying ad here]

    Why everything experts have told you could be killing you

    Darn experts know everything, right? Now I learn that all this advice could be killing me!?! Isn’t that just typical? Here, I thought I was living a pretty healthy life, listening to the helpful advice of John Tesh while taking everything in moderation. Who can you listen too? So much conflicting information.

  • [expand title=”What your neighbors don’t want you to know“]

    Congratulations! You have fallen for the hook.

    [Insert ad about latest amazing product]

     What your neighbors don’t want you to know

    What are my neighbors up to? I never see that guy next door until late at night and then there is the lady across the street who just bought that new, expensive SUV. What do they know and what are they hiding from me? I want to get ahead too!  Inquiring minds want to know.

  • And so much more! Oh, and it’s all new too.

    So what do you think? Is your curiosity getting the best of you? Why do we find these headlines so appealing?

    Nightcap Update

    For the past couple of weeks during the wee early morning hours before the kiddos wake, I have working on my latest pet-project, “Nightcap“. I thought that the program was mostly done. I should know by now to be more cautious of this mindset. I had been running Nightcap on my two Windows 8 PCs for months now without much ado, but when I took a closer look at the code base, I knew a couple of things needed changing before the much anticipated product release. My main concern was with the event-based approach that I used to detect keyboard and mouse activity. At first it appeared to work well, but during testing on our home PCs, my little beta testers (Thing 1 and Thing 2) noticed that their computers fell asleep while playing games. Clearly there was a lot of activity happening, but for some reason Nightcap had stopped noticing.

    It turns out that Windows 8 was secretly unhooking my event monitors and replacing them with Folgers Crystals

    Well not actually that, but it might as well have. The net effect was that my app could no longer sense anything about the computer and that was kind of the whole point of Nightcap. Why did Windows have it in for my app? Perhaps Windows had deemed Nightcap a poor citizen of the OS? I did a little research and learned that in recent years Microsoft had discouraged event monitoring for programs like Nightcap for good reason. These event-hooking hogs can really slow a computer down. Microsoft recommends using Raw Input instead of events hooks because it doesn’t hamper system processes and provides a more efficient way to delivery device messages. Reading over the documentation, I could see that this approach was radically different than event hooking. Being so close to completing my app, I was desperate to find a quick-fix. Clearly, I wasn’t the first person to write an app that used event monitoring. I wasn’t thrilled about reworking the core of my app when it was 99% there. After a quick search, I learned about a workaround where you can fudge a registry setting to set the bar so low that no process, however laggy, would ever be unhooked. The “fix” worked, but the hack never sat well with me. I had sort of forgot about that workaround while I was in the final push to get Nightcap up on my website. Without this hack, I imagined thousands of computers inadvertently falling to sleep while folks were playing games or composing emails. Bottom line, this was no way to release Nightcap.

    Which brings me to last week… I did some more research and decided that Raw Input processing was definitely the way to go even if I had to rewrite Nightcap. Unfortunately, the API was written for C++ and if I were to use it in my C# app, I would have to come up with a way to integrate the unmanaged code. Being new to C#, that was a learning process in itself, but I stuck with it and got the raw input code to work within Nightcap. However, after some initial testing, I noticed Nightcap had stopped responding to click events. Somehow the WM_INPUT handling was interfering with the normal event processing. After a few days of trying out various C++/C# incarnations without much luck, a new plan started to emerge. I thought,

    “What if I separate out the event processing part of my app from the reporting and configuration piece?”


    Eureka! I can write the input event monitoring as a Window Service and leave the C# app as-is. Only now, the visual aspect of Nightcap would interact with the behind scenes service to tell it under which circumstances to put the computer to sleep. The nice part about this approach is that the monitoring part of the program will be active even when no one is logged in. This comes in handy if your PC wakes up in the middle of the night because of LAN activity.

    My blog has been neglected for the past couple of weeks, so I felt an update was in order. I hope to have a beta version of Nightcap on my website by May. As a side note, I really enjoy working with Microsoft tools once again. Visual Studio 13 is fun to work with and in my experience is the best programmer’s workbench in the industry. Debugging code is so well done and I really like how git has been integrated into the IDE. Nice work!

    Well, I am getting back to it now. 


    RGD: Week in Review

    I somehow managed to finish a game this week. Now, I am not all that proud of the game, but my son thinks it’s cool, so I am going with that. The game is called “Grape Boy” and  its premise is pretty simple: You play Grape Boy, a character who catches grapes in his mouth. The more grapes you catch, the higher your score. If a grape hits the ground, Grape Boy loses a life.


    When I started the week, I had all kinds of “fantastic” game ideas but as time went on and I worked through my lofty game designs, I could see that I needed to simplify. Thus Grape Boy was born.

    Panic set in around Monday evening. It just didn’t seem possible that I was going to complete a full game in a week using traditional programming techniques. I needed a plan B if I was going to make good on my commitment. That’s when I gave Construct 2 a go. I briefly experimented with the game construction kit about two years ago and thought it would be easy to pick up (maybe wished would be a better description). Through the years, I’ve learned that with software development there is always something to fight. There is no such thing as painless development. Frustration is a constant. The folks at Scirra have done a fantastic job of making a very powerful and “easy” to use game kit. If you don’t have a programming background I suspect using Construct 2 is the easiest way to go. For me, it was a different story. I had to restrain my desire to write code and figure out how to accomplish the task using events sheets and layouts. Having a full time job didn’t make it any easier, but I couldn’t let lame excuses get in the way of my goal. I had hoped that my focus on fun would somehow make everything go smoother… No, fun as game development was, there were a lot of hours of “Why doesn’t that just work like in the example?” or “I can’t believe it’s so hard to do this simple thing” and a few hushed expletives as well. I spent most of the week just learning how the game tool worked, but I felt confident that if I stuck with it, Construct 2 would pay off in the end. Grape Boy doesn’t have all the features that I would have liked, but it is a complete game and that was my goal. I wished it had sound and more play elements, but I ran out of time and decided it was better to post a little game than no game at all. I am proud that I was able to add a high scores feature. Now you can try to best my high score. I love a good competition! 

    The whole experiment had unexpected rewards for me too. My son caught the game development bug and started writing a game of his own. He is working on his latest masterpiece as I write this post. Thing 1 is a natural gamer and is amazingly talented. One minute I look over at his monitor and he is playing Supreme Commander and the next I see him polishing off an amazing looking space game. All without asking me a single question. I am in awe of his creativity and imagination. I can’t wait to see what he will create next. In the near future, I will be posting his latest creations to

    Well, this week I plan to take a break from game development to finish off my taxes and take care of my to-do list.