To change the caption (title) of a window you can use the API function SendMessage. Note that you'll need its handle.
Example code in VB6:
Code:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName 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
Dim hWnd As Long
Private Sub Form_Load()
hWnd = FindWindow(vbNullString, "FLYFF")
SendMessage hWnd, WM_SETTEXT, 0, ByVal "New name"
End Sub
FindWindow returns the handle and then SendMessage changes the caption.
carru ~