Hello, I'm still a beginner at Visual Basic, but I feel I have a pretty good understanding so far.
First of all, I know the code to sendkeys such as letters and numbers, but when I try and send the 'Enter' key that would simulate the user hitting the enter button, nothing happens. If i'm in a text editing form such as where I'm typing this, it doesn't enter a carriage return.
Also, I know that the keypress event enables users to press keys and have them recognized by the program, but if the program is not the active window, it cannot be recognized. What can I do to overcome this? I figure a timer that constantly checks the state of a key, but what code would I put in?
First of all, I know the code to sendkeys such as letters and numbers, but when I try and send the 'Enter' key that would simulate the user hitting the enter button, nothing happens. If i'm in a text editing form such as where I'm typing this, it doesn't enter a carriage return.
Also, I know that the keypress event enables users to press keys and have them recognized by the program, but if the program is not the active window, it cannot be recognized. What can I do to overcome this? I figure a timer that constantly checks the state of a key, but what code would I put in?