I have searched everywhere on multiple forums and can't find the answer to this tricky one.
Currently I have used the SetForegroundWindow to bring the window to the front first and I have the hWnd of the textbox in the external application and I also have attached the thread input to the other application. It's also just the current "tab focus" that is all i needed to change, for example the window by default has a command button "tab focused" (highlighted) and I would like to change that to the textbox, either while the form is visible or not, but when the form gets focus I would like the focus to be in the textbox ready to type.
So far i've tried: Using the SetFocus API, I've tried using SendMessage to send BM_CLICK (although of course that wouldn't work) and I'm stuck at this point, any ideas?
Currently I have used the SetForegroundWindow to bring the window to the front first and I have the hWnd of the textbox in the external application and I also have attached the thread input to the other application. It's also just the current "tab focus" that is all i needed to change, for example the window by default has a command button "tab focused" (highlighted) and I would like to change that to the textbox, either while the form is visible or not, but when the form gets focus I would like the focus to be in the textbox ready to type.
So far i've tried: Using the SetFocus API, I've tried using SendMessage to send BM_CLICK (although of course that wouldn't work) and I'm stuck at this point, any ideas?