I have an application that I want to send keystrokes to. However, I need to know what application to return focus to and identify the form within the application is currently active, identifying it by the caption to determine if it is a simple Return keystroke or a more complex entry.
I enter a set of numbers on the first form, If they don't match, an error form (3 button MsgBox) is generated and requires only a Return keystroke to take it back to the entry form. If it matches, another form is generated also with an OK button.
My dilemma is that I don't know the form name so I can only identify the form by it's caption and I don't want to send a return keystroke to the one that tells me it was correct or it defeats the object.
Can anyone give me some tips?
Thanks
Tryst
My Idea of an OS is one that operates the system not a self contained package of every piece of software ever invented.
I enter a set of numbers on the first form, If they don't match, an error form (3 button MsgBox) is generated and requires only a Return keystroke to take it back to the entry form. If it matches, another form is generated also with an OK button.
My dilemma is that I don't know the form name so I can only identify the form by it's caption and I don't want to send a return keystroke to the one that tells me it was correct or it defeats the object.
Can anyone give me some tips?
Thanks
Tryst
My Idea of an OS is one that operates the system not a self contained package of every piece of software ever invented.