|
-
May 13th, 2001, 09:35 AM
#1
Use FindWindowEx with variable title
If I wanna know if any title, for example, starts with "Order", I can't write FindWindow(vbNullString, "Order"). To make it work now I must write the whole titlename (Order 10002321). But if I only wanna know the titles which starts with order, how do i write the code then?
Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SetWindowText Lib "user32.dll" Alias "SetWindowTextA" (ByVal hWnd As Long, ByVal lpString As String) As Long
Dim nHWND As Long
nHWND = FindWindow(vbNullString, "Order*****")
-
May 13th, 2001, 10:01 AM
#2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|