You don't use that in your addon. You just use Skada:ToggleWindow(). You call the function in Skada, which executes the code in that function.
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh
i dont know why but it works ..unfortunately on the first click it appears and then it disappears automatically. But on all other clicks it seems to work fine.
Think i have to live with it till i find a solution