Logitech G402 User Manual - Page 82

Editing scripts, Gaming Software, Customize G-keys/buttons, Profiles, Scripting, Script

Page 82 highlights

Editing scripts The Logitech® Gaming Software contains a script editor that enables advanced users to create scripts using the Lua programming language. Lua is a free programming language specifically designed for extending applications. For information on Lua, visit www.lua.org. Scripts created using Lua can be shared by the gaming community, so advanced users can not only create scripts for themselves but can export and import them. When you have selected a profile in The Gaming Software window, you can create, import, and edit a script for that profile. Each profile can have one script attached to it. You can access the script editor in order to maintain scripts from the main Gaming Software window. To do so: 1. Within the Logitech Gaming Software, if you have more than one gaming device, choose the relevant one using the Device Selector on the Device bar. 2. Display the Profiles View (by clicking the Customize G-keys/buttons icon on the Device bar). 3. Right-click the correct profile in the Profiles area or click its arrow, and select Scripting. The Script window is displayed. You can use its menus and features to perform a range of tasks, including the creation and saving of new scripts, and the importing and exporting of scripts. All profile scripts are activated when the profile is activated and deactivated when the profile is deactivated. There is Lua support material available, describing how scripting works, the functions available, and so on, as well as some samples and other documentation. This documentation is accessible from the Help menu of the Script window.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130

Editing scripts
The Logitech
®
Gaming Software contains a script editor that enables advanced users to create scripts using the Lua
programming language. Lua is a free programming language specifically designed for extending applications. For information on
Lua, visit
www.lua.org
. Scripts created using Lua can be shared by the gaming community, so advanced users can not only
create scripts for themselves but can export and import them.
When you have selected a profile in The
Gaming Software
window, you can create, import, and edit a script for that profile.
Each profile can have one script attached to it. You can access the script editor in order to maintain scripts from the main
Gaming Software
window. To do so:
1.
Within the Logitech Gaming Software, if you have more than one gaming device, choose the relevant one using the
Device Selector on the Device bar.
2.
Display the Profiles View (by clicking the
Customize G-keys/buttons
icon on the Device bar).
3.
Right-click the correct profile in the
Profiles
area or click its
arrow, and select
Scripting
.
The
Script
window is displayed. You can use its menus and features to perform a range of tasks, including the creation
and saving of new scripts, and the importing and exporting of scripts.
All profile scripts are activated when the profile is activated and deactivated when the profile is deactivated.
There is Lua support material available, describing how scripting works, the functions available, and so on, as well as some
samples and other documentation. This documentation is accessible from the
Help
menu of the
Script
window.