Basics of Using Plugins in MOI?

 From:  Geoff (GEE_OFF)
8709.1 
Hi, I'm new to the forum, but have been using MOI for a few years. I have never used plugins in MOI, and lately I attempted to start exploring this process, as it seems I'm missing out on lots of cool features. So far all my attempts to get familiar with plugins have been fruitless, so I'm asking for help. I am starting at zero with regard to plugins, and all the info I've been able to dig up seems to assume some requisite knowledge.

Let me restate this: I need beginner level, 'getting started' guidance with regard to using plugins in MOI.

Here's what I think I've got so far:

One downloads a file that has a .js and a .htm file in it. One then pastes these files in either (or both?) the ui folder or the commands folder.

Once that's done, one opens MOI, then clicks Options > Shortcut Keys > Add. One then types something like, "script:moi.command._Gear.js();" in the "command" column.

Are there any problems with the above? This is all I've been able to glean from combing the forums. Once again, I have no idea what I'm doing with regard to plugins; please be specific as you can.

When I press the key I assigned to this command I get the following message:

"TypeError: Result of expression 'moi.command._Gear'[undefined] is not an object.
line 1
1: >> moi.command._Gear.js();"

EDIT: I seem to recall reading somewhere that this problem (or something similar) happens in V2 but not in V3. I have MOI V3.

EDITED: 30 Nov 2017 by GEE_OFF