I do something similar with kgPanels scripts.
This one is a button that toggles Skada and the minimap, but it could be modified to do the same thing with the chat.
OnClick:
Code:
if pressed then
if IsControlKeyDown() then
if SkadaBarWindowMeter:IsVisible() then
SkadaBarWindowMeter:Hide()
else
SkadaBarWindowMeter:Show()
end
else
if Minimap:IsVisible() then
Minimap:Hide()
self.bg:SetVertexColor(.35, .91, 1, 1)
else
Minimap:Show()
end
end
end
This toggles my minimap on click and Skada on ctrl + click.
Looks like this at the moment.