Change foreground / desktop via shortcut?

Hi, new here. What is the best way to toggle the position of Rainlendar on the fly through keyboard shortcuts or scripts (lua, Autohotkey)? I have Rainlendar locked to my desktop but would like to view it on top of other windows occasionally. Is there some way to change the setting and refresh the display / restart the program, could I temporarily start a second instance with different settings etc.?

Many thanks!

You could try to use the Rainlendar_SetOption to change the WindowPosition value in the settings and then do Rainlendar_Redraw. It should bring the windows to front (or back depending on the WindowPosition setting).

Thanks, I’ll try to figure it out.