Does anyone know about any oddities with SendKeys.Send?
I have an application that I am working on that opens another application performs a process and then is supposed to close the application. All of this works great with the help of Megatron. The application that is to be closed pops up a window with an OK button that needs to be pressed before the application will close. According to what I have read SendKeys will send a key to the active application. The application is active but when the code to do the SendKeyis executed the machine just locks up (i.e. mouse will not move, no application appears to have the focus, the mouse cursor switches to the I-beam). If I give it the old 3 finger salute (CTL-ALT-DEL), The task manager comes up and the program stops on the line after the SendKey with no change to anything.Code:SendKeys.Send("{ENTER}")![]()
![]()
![]()
![]()
Does any one have any advice or ideas?




Reply With Quote