Results 1 to 2 of 2

Thread: Use FindWindowEx with variable title

  1. #1
    Pirre001
    Guest

    Question 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*****")

  2. #2
    Megatron
    Guest

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width