GET MOUSE

4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next

version 6.0


GET MOUSE (mouseX; mouseY; mouseButton{; *})

ParameterTypeDescription
mouseXNumberHorizontal coordinate of mouse
mouseYNumberVertical coordinate of mouse
mouseButtonNumberMouse button state:
0 = Button up
1 = Button down
2 = Right button down (Windows only)
3 = Both buttons down (Windows only)
*If specified, global coordinate system is used
If omitted, local coordinate system is used

Description

The command GET MOUSE returns the current state of the mouse.

The horizonal and vertical coordinates are returned in mouseX and mouseY. If you pass the * parameter, the coordinates are expressed relative to the screen. If you omit the * parameter, they are expressed relative to the frontmost window of the current process.

The parameter mouseButton returns the state of the buttons, as listed previously.

Example

See the example for the command Pop up menu.


See Also

Caps lock down, Macintosh command down, Macintosh control down, Macintosh option down, ON EVENT CALL, Shift down, Windows Alt down, Windows Ctrl down.


4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next