If you know the classes/captions, you can apply properties like WM_SETFOCUS to it:
Code:
'Code by: Microbasic
Private Declare Function FindWindowEx Lib "user32" _
Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, _
ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SendMessage Lib "user32" _
Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal _
wParam As Long, lParam As Any) As Long
Private Const WM_SETFOCUS = &H7
Function Find_hwnd(Text As String, ClassName As String, Optional Starthwnd As Long) As Long
Find_hwnd = Findwindow(Starthwnd, ClassName, Text)
End Function
Sub FocusWin(hWnd As Long)
SendMessage hwnd, WM_SETFOCUS, 0, 0
End Sub
Do you need a manual?