I want a shortcut button that will let me "Open referenced files as read-only access". Does anyone have a macro that I can assign to a button?

I want to put the button up the very top of the screen. Does anyone have a macro that can change this setting that I can assign to a button?

Thanks.

SolidworksApi macros