Home > Software engineering >  How to get grey window handle in the SPY?
How to get grey window handle in the SPY?

Time:10-01

The Function gets the current page number (s)
Dim HWND As Long
Dim hwnd1 As Long
Dim hwnd2 As Long
Dim hwnd3 As Long

AcrobatSDIWindow HWND=FindWindow (" ", "no nonsense XML. PDF - Adobe Acrobat Pro")
If HWND & gt; 0 Then
Hwnd1=FindWindowEx (HWND, 0, "AVL_AVView", "AVToolBarHostView")
If hwnd1 & gt; 0 Then
Hwnd2=FindWindowEx (hwnd1, 0, "AVL_AVView", "AVToolBarView")
If hwnd2 & gt; 0 Then
Hwnd3=FindWindowEx (hwnd2, 0, "Edit", "61.4%")
If hwnd3 & gt; 0 Then

The Else
MsgBox "hwnd3=0"
End the If
The Else
MsgBox "hwnd2=0"
End the If
The Else
MsgBox "hwnd1=0"
End the If
The Else
MsgBox "HWND=0"
End the If
End the Function

Don't know why hwnd3 to obtain the result is 0, the other handle is normal, and the value is 61.4% correct, are copied from spy++

CodePudding user response:

You use enumwindows under the HWND listed all the window and see...
  • Related