@ Kingchris
Hi !... I don't know if this will help you, but I'll try

.
This is the process of what I did, to place the script on the Logitech gaming software and hope this will help you and to any other member that dont kow how to install it.
1.- I open the Logitech gaming software.
2.- Scan for new games ( it detect BF1 etc.) icons show on top the software .
3.- I press + to create new profile and name it (BF1 script).
4.- Add exe of game and check Lock profile while game is running ok. (new icon of BF1 is created on list).
5.- Right click on new profile Icon bf1script and scroll down menu to scripting.
6.- Delete what ever is there in script and copy paste the new script. save close.
7.- In Icon top right click and press save profile.
8.- Right click on profile and select default profile
9.- Right click on profile icon and go to properties to double check all ok. Name ok, Description ok, exe ok, Lock profile while game running ok. ok close
10.-Press home and select Automatic Game detection.
11. Now the profile still in 5 no change for g500 is the forward small button.
--------------------------------
Now to change the "activation : or enable the script, there is a line in the script, that you need to change when you press the number of that button in your mouse.
For example; For me is now 3 that is the (middle scroll wheel) "button" in my mouse
This is the line in the script , In were you need to change the number, just the number, choose one you dont use ingame, to change to enable the script, here:
if (event == "MOUSE_BUTTON_PRESSED" and arg == 3) then
change the number 3 , to which ever button you want, remember use only the ones you dont frequently use ingame when playing or you are going to enable, disable the script every time you press that button in your mouse.
( Find out which numbers are assign to the buttons, in your Logitech model mouse )
Now remember, to open the screen to place you script:
In taskbar left click in the icon of Logitech logo , it will promp the window with the image of your mouse Logitech Gaming Software.
Left Click on the mouse image ( glowing mouse) BIg central image.
Will prompt the window to create profile and Commands .
In Profiles
Left click in create new profile " + " symbol
then follow the name it Description ( same name as name) for easy access.
Click in plus icon to find the "Exe" of the game and promp in ( Games and apps that use this profile) .
after that, just follow the instructions I did, to create the profile and script from Vazi963 and Credits to Heroic !
cheers hope it helps .
And Thanks again to Vazi963 to help me to install it and point me in the right direction on how to improve it and Fix my particular trouble with the script and for Tweaking the script for us and share it and Credits to Heroic for create it !
cheers
Takako
I'm a Gaming Grill, that spray and pray !