turtle.getSelectedSlot
From ComputerCraft Wiki
| Added by version 1.6 of ComputerCraft, this command returns the currently selected inventory slot. In builds prior this value must be tracked manually by the scripter. | |
| Syntax | turtle.getSelectedSlot() |
| Returns | number selected slot |
| Part of | ComputerCraft |
| API | turtle |
Examples