Is palette showing?

My Sigil macro group is available only to Sigil, available in all windows, and shows a palette until (no options selected). When I launch Sigil, the palette is showing, and the macro I use to move the palette works. If I switch to another application and return to Sigil, the palette is showing. However, if I turn off the palette, switch to another application, and return to Sigil, the palette is hidden. Is there a way for Keyboard Maestro to know that the palette is showing? If it isn’t showing, then I can automatically toggle the palette on and then move it.

This is as designed. In fact there is a bunch of code to make sure this works - the toggle state remains as you switch in and out of the Application.

You could use a separate macro in a global group, triggered when Sigil is activated that shows the macro group.