tool

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the tool
tool()
Summary

Returns the name of the currently chosen tool.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, mobile
Example
the tool
if the tool is not "browse tool" then choose browse tool
Values
NameTypeDescription
return

The tool function returns one of the following tool names: browse, pointer, button, field, scrollbar, graphic, image, player, select, pencil, bucket, brush, eraser, spray can, rectangle, line, round rect, oval, polygon, curve, regular polygon, or dropper, followed by the word "tool"

RelatedCommand: choose
Function: tool
Control Structure: function
Glossary: command, return
Description

Use the tool function to find out which tool is currently selected.

The tool names are the same as the names used with the choose command to select a tool for use.