Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21839

Use Findwindow by ".exe"

$
0
0
Hi, i'm trying to find "FlashPlayerPlugin_11_6_602_171.exe" in findwindow function but i couldn't because it need the caption not the program name
So any ideas??

My code so far,
Code:

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

Private Sub Command1_Click()
text1.text = FindWindow(vbNullString, "FlashPlayerPlugin_11_6_602_171")
End Sub


Viewing all articles
Browse latest Browse all 21839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>