Thanks so much SDPhantom for the great explanation.
I think I begin to understand
So following your explanation I begin to looking for some sample code.
I have found this old snippet:
Lua Code:
local done
local function ToggleGuildFrame_hook()
if not done then
GuildFrameTab2:Click()
done=true
end
end
hooksecurefunc("ToggleGuildFrame",ToggleGuildFrame_hook)
For me it doesnt work anymore but it is a good starting point where begin to work on
Thanks again for your time.