mouseChar

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the mouseChar
mouseChar()
Summary

Returns the character the mouse pointer is over.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
the mouseChar
if the mouseChar is a number then goToFootnote
Values
NameTypeDescription
return

The mouseChar function returns a character.

RelatedKeyword: characters, character, field
Function: mouseLine, clickChar, mouseCharChunk
Glossary: handler, mouse pointer, return
Control Structure: function
Description

Use the mouseChar function within a handler to determine which character the mouse is hovering over, in order to take some action based on the current character.

The mouseChar function only returns characters in a field. If the mouse pointer is not over a field, the mouseChar function returns empty.

To find the position of the mouseChar within the field, use the mouseCharChunk function.

Tagsui