___mehdi.rato___
جمعه 03 اردیبهشت 1395, 13:46 عصر
سلام
کد زیر میاد هندل پنجره ای که Caption آن "Task Manager" هست رو پیدا می کنه.
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Dim Temp As Long
Private Sub Timer1_Timer()
Temp = FindWindow(vbNullString, "Task Manager")
End Sub
من می خوام هندل پنجره ای رو پیدا کنم که در Caption آن مثلاً "Task" یا "Manager" پیدا شود.
یعنی اگر Caption پنجره ای "Task Manager" بود، پنجره ای که در Caption آن "Task" (و یا "Manager") هست، هندل آن در متغیر Temp ریخته شود.
لطفا راهنمایی کنید. گشتم چیزی پیدا نکردم.
کد زیر میاد هندل پنجره ای که Caption آن "Task Manager" هست رو پیدا می کنه.
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Dim Temp As Long
Private Sub Timer1_Timer()
Temp = FindWindow(vbNullString, "Task Manager")
End Sub
من می خوام هندل پنجره ای رو پیدا کنم که در Caption آن مثلاً "Task" یا "Manager" پیدا شود.
یعنی اگر Caption پنجره ای "Task Manager" بود، پنجره ای که در Caption آن "Task" (و یا "Manager") هست، هندل آن در متغیر Temp ریخته شود.
لطفا راهنمایی کنید. گشتم چیزی پیدا نکردم.