Hi RedGuides
I feel I have an understanding of Window, in that it has a number of properties (members) variables that can be seen. These include details about other windows it relates to, as sibling, parent and child.
Some time ago, I posted on here about Quests, to quickly recap.
Looked at the "TaskWND", and it's child "Task_TakList".
Examples;
By looking at the value for ${Window[TaskWND].Child[Task_TaskList].Items} would provde the number of quests in the journal.
It is possible to iterate over them and get the names of each quest. A for loop,. start the iterator at 1, and run until that above number of items. The 3rd column is the quest name.
${Window[TaskWND].Child[Task_TaskList].List[ iterator, 3]}
More recently, I've been looking at this again, and learned that "Task_TaskList" is of type "Listbox". When looking at a child window, of type Listbox, then it has a number of Items. (as described above).
Moving on from Quests, I am interested in looking at the character windows for Faction and Achievements.
Using MQ2Hud and mouse over, I can see some information on their structure, starting with the left panel.
FactionWnd -> FAC_Categories
AchievementsWnd -> ACH_Categories
Checking the type of window for those two named categories it comes back "TreeView".
How to enumerate the content of this TreeView?
Unlike the Listbox, the value of Items returns as 0.
checking for children, returns false.
In game, as a player we can see a list of expansion "graphical logos" and also a tool tip in text if mouse by them.
How to access this information with MQ2 macros?
e.g. to be able to select a specific expansion by name, to then be in a position to look at the right hand panel for more specific information.
Again with reference to MQ2Hud, and it showing the names of whatever is being moused over. There are a fair number of pieces when wander around "ACH_AchievementsPage".
But when look at the left panel for "ACH_Categories", it's consistent. The HUD output doesnt change, everything in there thinks it is "ACH_Categories". Similar said for Factions, the left panel of "FAC_Categories".
So as asked above, how to handle these TreeView structure?
e.g. to be able to list the names of elements in tree and later, select an element; akin to the player having clicked one with the mouse.
Regards and Best Wishes.
I feel I have an understanding of Window, in that it has a number of properties (members) variables that can be seen. These include details about other windows it relates to, as sibling, parent and child.
Some time ago, I posted on here about Quests, to quickly recap.
Looked at the "TaskWND", and it's child "Task_TakList".
Examples;
By looking at the value for ${Window[TaskWND].Child[Task_TaskList].Items} would provde the number of quests in the journal.
It is possible to iterate over them and get the names of each quest. A for loop,. start the iterator at 1, and run until that above number of items. The 3rd column is the quest name.
${Window[TaskWND].Child[Task_TaskList].List[ iterator, 3]}
More recently, I've been looking at this again, and learned that "Task_TaskList" is of type "Listbox". When looking at a child window, of type Listbox, then it has a number of Items. (as described above).
Moving on from Quests, I am interested in looking at the character windows for Faction and Achievements.
Using MQ2Hud and mouse over, I can see some information on their structure, starting with the left panel.
FactionWnd -> FAC_Categories
AchievementsWnd -> ACH_Categories
Checking the type of window for those two named categories it comes back "TreeView".
How to enumerate the content of this TreeView?
Unlike the Listbox, the value of Items returns as 0.
checking for children, returns false.
In game, as a player we can see a list of expansion "graphical logos" and also a tool tip in text if mouse by them.
How to access this information with MQ2 macros?
e.g. to be able to select a specific expansion by name, to then be in a position to look at the right hand panel for more specific information.
Again with reference to MQ2Hud, and it showing the names of whatever is being moused over. There are a fair number of pieces when wander around "ACH_AchievementsPage".
But when look at the left panel for "ACH_Categories", it's consistent. The HUD output doesnt change, everything in there thinks it is "ACH_Categories". Similar said for Factions, the left panel of "FAC_Categories".
So as asked above, how to handle these TreeView structure?
e.g. to be able to list the names of elements in tree and later, select an element; akin to the player having clicked one with the mouse.
Regards and Best Wishes.