Logitech Gaming Software Script Help

Hello I am unsure of where to correct place to ask for help is. I need a hand making these two scripts work together. Currently only the bottom script will work. I am trying to merge two scripts together.

Kind Regards