Error getting tags :
error 404Error getting tags :
error 404 mouse | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
mouse
Basics
Expander triangle
Type
Function
Syntax

mouse([buttonNumber])

the mouse

Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the state of a mouse button.
Examples

the mouse
mouse(3)
if mouse(defaultButton) is "up" then
goBackToStart
end if

Additional Comments
Expander triangle

Use the mouse function to check whether the user is pressing a mouse button.

Parameters:

The buttonNumber specifies which mouse button to check:

* 1 is the mouse button on Mac OS systems and the left button on Windows and Unix systems.

* 2 is the middle button on Unix systems.

* 3 is the right button on Windows and Unix systems and Control-click on Mac OS systems.

Comments:

If you don't specify a buttonNumber, the mouse function returns the state of mouse button 1.

User Comments
Expander triangle