Trouble while creating my own keyboard shortcusts

 From:  coi (MARCO)
6765.2 In reply to 6765.1 
Hi Heiner!

Hide is a macro.

quote:
There are a few buttons in the UI that run script macros instead of commands: Hide, Reset all, Select all, Deselect all, and Invert. This is so they can be used while a command is still running, so these functions are slightly different than a regular command. To hook these up to a shortcut key fill in the Command part with one of the following scripts:

Hide:
script:moi.geometryDatabase.hide();

Lock:
script:moi.geometryDatabase.lock();

Reset all views:
script:moi.view.resetAll();

Select all:
script:moi.geometryDatabase.selectAll();

Deselect all:
script:moi.geometryDatabase.deselectAll();

Invert selection:
script:moi.geometryDatabase.invertSelection();