Okay after a bit more investigating I have this:
Lua Code:
GameMenuButtonSettings;Click("RightButton") -- open game menu
SettingsPanel.GameTab:Click("RightButton") -- click the game tab
Then from there, I have to loop through the category list:
Lua Code:
for k, v in pairs(SettingsPanel.CategoryList) do
print(k, v)
end
The keybindings button is the 7th element;
Lua Code:
for k, v in pairs(SettingsPanel.CategoryList.elementList) do
for a, b in pairs(v) do
if k == 7 then
print(k, a, b)
if a == "data" then
print("FOUND", k, a, b)
end
end
end
end
The problem is that getting to the 7th element is wrong as I have to manually count the elements rather than reading each element.
Then from there, I need to identify the current element as a button then read that button text and from there I need to click the keybinding button.
Now that I am a bit closer to my goal I have hit a wall and am floundering once again.