Hello, this is my first post- I hope somebody can help.
First of all, I am using Visual Basic 2008 Express.
I am trying to write a Helper Utility for an application called RPG Maker MV, so in the application there is a ListBox and I am trying to determine which Item is currently highlighted:
![Name: rmmv_window_caption.jpg
Views: 48
Size: 41.6 KB]()
Looking at the application in UI Spy, the ListBox is a "tree" LocalizedControlType and doesn't appear to have a ClassName:
![Name: UI_Spy.jpg
Views: 45
Size: 65.0 KB]()
The RPG Maker MV main Window has a ClassName- "Qt5QWindowOwnDCIcon":
![Name: UI_Spy_2.jpg
Views: 48
Size: 79.8 KB]()
So I am able to write a function that detects the hWnd of that:
But that's where my know-how ends. I do not know how to proceed from here, especially since the ListBox / "tree" doesn't have a ClassName.
Would anybody know if there is a FindChildByControlType() or something similar that I could use to get the ListBox / "tree"'s hWnd?
And then, after that, how do I extract which item is highlighted? Do I need to use SendMessage()?
I'll appreciate any advice that I can get... thanks in advance!
First of all, I am using Visual Basic 2008 Express.
I am trying to write a Helper Utility for an application called RPG Maker MV, so in the application there is a ListBox and I am trying to determine which Item is currently highlighted:
Looking at the application in UI Spy, the ListBox is a "tree" LocalizedControlType and doesn't appear to have a ClassName:
The RPG Maker MV main Window has a ClassName- "Qt5QWindowOwnDCIcon":
So I am able to write a function that detects the hWnd of that:
Code:
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Function RMMVGetWindow()
Dim hWnd As Long
hWnd = FindWindow("Qt5QWindowOwnDCIcon", vbNullString)
Return hWnd
End FunctionWould anybody know if there is a FindChildByControlType() or something similar that I could use to get the ListBox / "tree"'s hWnd?
And then, after that, how do I extract which item is highlighted? Do I need to use SendMessage()?
I'll appreciate any advice that I can get... thanks in advance!