magicsmacks
Messages postés128Date d'inscriptionmercredi 21 mai 2003StatutMembreDernière intervention 8 avril 2008
-
13 nov. 2004 à 22:50
cs_cboury
Messages postés3Date d'inscriptiondimanche 2 mai 2004StatutMembreDernière intervention 1 juillet 2006
-
5 juil. 2005 à 20:13
Bonjour,
je voudrais savoir si quelqu'un aurait la solution à ce problème: comment ouvrir une application (VideoLan Client) de manière à pouvoir la refermer ensuite (à la fin du film)? Peut importe le langage de programmation, je m'adapterais ou j'adapterais la solution...
cs_Pingouin
Messages postés262Date d'inscriptionlundi 26 août 2002StatutMembreDernière intervention24 août 2005 13 nov. 2004 à 23:54
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)