tool

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the tool to <toolName>
Summary

Specifies which tool is currently chosen.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, mobile
Example
set the tool to "button tool"
set the tool to pointer
Values
NameTypeDescription
Value

A string describing the current tool.

browse tool:
pointer tool:
button tool:
field tool:
scrollbar tool:
graphic tool:
image tool:
player tool:
select tool:
pencil tool:
bucket tool:
brush tool:
eraser tool:
spray can tool:
rectangle tool:
line tool:
round rect tool:
oval tool:
polygon tool:
curve tool:
regular polygon tool:
dropper tool:
RelatedProperty: powerKeys
Command: choose
Function: tool
Control Structure: function
Glossary: property, command, return
Description

Use the tool property to check which tool is in use before performing an action that depends on the tool.

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

Setting the tool is equivalent to choosing the tool with the choose command. When setting the tool property, you can omit the word "tool".