OK then its SENDKEYS you want to use.
Along the lines SendKeys "{ENTER}", True
This will send enter to the active control on the active form unless you have keypreview set to true then it will be intercepted by the form keypress event of the form.... I think
>I want to actually send a enter key press to the app
Will you be doing this (sending the key stroke) in the same application that is to receive the key stroke?
If so, then using SendKeys may be the wrong method. It can cause alot of grief if used wrong. There are then other methods for doing what you want if the above applies. [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
It's still not quite clear from your question what you are trying to achieve
The intrinsic constant vbCRLF will give a carriage return Chr(13) and a line feed Chr(10)
If you want to put the equivalent of Enter key onto the end of some text then:
strSomeText = strSometext & vbCRLF
If none of these suggestions has solved it for you check out faq222-2244 to clarify your question
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'People who live in windowed environments shouldn't cast pointers.'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.