bon alors je propose un chtit truc le seul pb c kil faut le titre exact de la fenetre (sa caption) ou alors ya moyen aussi en laissant la souris dessus si ca t'interesse je te filerais ca aussi.
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Const WM_CLOSE = &H10
Dim lHandle As Long, sCaption As String
sCaption = InputBox("Entrez le titre exact : ")
lHandle = FindWindow(vbNullString, sCaption)
PostMessage lHandle, WM_CLOSE, 0&, 0&
En espérant que ca pourra t'aider...
The Pingouin
