I'm not sure there is anything to detect that or not, but using a couple functions from the js_ReaScriptAPI extension seems to be working here on Win10,.. Code:
This seems to be working also, and only requires the SWS extension,.. Code:
Oh that's awesome, I shall try that here! Basically I want to make copy+paste scripts that are specific to certain sections of the UI. Thanks!