How do I respond to a specific sequence of key presses?
        Posted  
        
            by Sergio Tapia
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Sergio Tapia
        
        
        
        Published on 2010-04-28T02:22:06Z
        Indexed on 
            2010/04/28
            2:33 UTC
        
        
        Read the original article
        Hit count: 404
        
The end result is very simple, I have to have something happen when a user types in the letter "n" "o" "t" "e" in that order. 'Note' is the word.
I'm making a little application for a friend that will help him take notes, and I want my application to become visible when he types in "note" from anywhere on the machine.
Here's what I've got so far:
if (e.KeyCode == neededLetter as Keys)
            {
                neededLetter = "o";
            }
I initialize the neededLetter variable with "N" but I'm stuck there. Any help?
© Stack Overflow or respective owner