How would I invoke a function or a call..just like if a user clicked a button, I want to know how if say they type in "test" I want to be able to dispay a message box or something.
The thing is I dont want it typed in a text box. What I want is if nothing has the focus I want to be able to type "test" and I want to be able to do some code. Kind of like cheat codes in games where a special combination of keystrokes unlocks things...or Easter Eggs in programs and Windows
this really is just out of curiousity...I have been thinking about it for a while. What I actually want to do is when the user types in some special word I want it to bring up a message box with my name and other information. It is really an about box but I dont want it to be publicly known
Private Sub Form_KeyPress(KeyAscii As Integer)
Static strEasterEgg As String
strEasterEgg = strEasterEgg & Chr(KeyAscii)
If InStr(1, strEasterEgg, "Test") Then
MsgBox "Hello, this is by Chewy!"
End If
End Sub
Mile-O-Phile youve done it again! Works good except after you get the message, after you press any key it gives you the message. I just added a clear string line
Private Sub Form_KeyPress(KeyAscii As Integer)
Static strEasterEgg As String
strEasterEgg = strEasterEgg & Chr(KeyAscii)
If InStr(1, strEasterEgg, "Test") Then
MsgBox "Hello, this is by Chewy!"
strEasterEgg = ""
End If