[VB6]No experience with it but I need it :     Private Sub cmdtiehack_Click()     
    Dim hwnd     
    hwnd = FindWindow(vbNullString, "Window name")          

    If hwnd = 0 Then         
    MsgBox "Program is not open"         
    Else         
    Dim Retval As Long     
    Retval = ShellExecute(Me.hwnd, "open", "5.exe", _     0, 0, SW_HIDE)     
    Delay 1     
    Retval = ShellExecute(Me.hwnd, "open", "6.exe", _     0, 0, SW_HIDE)     
    End If 
    End Sub

I didn't use VB in past, but I can't see where's the error. Should I compile it or save like a .vbs just by using Notepad? Thanks for advice.