This work well:
Lua Code:
/run local f=kgPanel1; f:SetShown(not f:IsShown())
The panel have another name in kgpanels /config, but /fstack say kgPanel1 is the real name. But now I have another problem, if I add another panel, kgPanel1 changes automatic to kgPanel2, moreover, when exit and enter wow again, this internal panel names (kgPanelxxx) changes arbitrary. I need a solution to access to my panels by the name I assign to it in kgpanels /config. If anyone knows how to do this please help me.
Thanks.