This is an old Skin Consortium script to pass a click on a GUI object to a button.
The script takes two parameters, the first of which is the id of the GUI object and the second is the id of the button. Here's an example:
<button
id="Track Info" action="trackinfo"
x="24" y="62" w="1" h="1"
image="none"
/>
<AlbumArt
id="albumart" notfoundImage="nocover"
x="24" y="62" w="-48" h="-86" relatw="1" relath="1"
/>
<script file="scripts/sc_mouseredir.maki" param="albumart;Track Info"/>The script can also be used to set the positions of pop-up menus:
<button
id="Main Menu" action="SYSMENU"
x="8" y="40" w="1" h="1"
image="none"
/>
<button
id="Main Click"
x="8" y="8"
image="button.main"
hoverImage="button.main.hover"
downImage="button.main.pressed"
tooltip="Main Menu"
/>
<script file="scripts/sc_mouseredir.maki" param="Main Click;Main Menu"/>As you can see, only the button receiving the mouse click has visible button images, and only the button launching the menu and setting its position has an action parameter.
Skins known to use this script