[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function: MouseKey()
MouseKey() has the same functionality as the inkey(0)
function, with that difference that it will return 13
(Enter, K_ENTER) when the left button is pressed and 27
(Esc, K_ESC) for the right button. You could thus use
MouseKey() everywhere in your application where Inkey(0)
(ie. wait for a key) was previously used, especially
handy for the 'Press any key' and alike messages, where
users generally assume that clicking the mouse is also
good enough.
This function does not require a Mouse to be installed,
but just uses it when MouseThere() returns true. This
function will not make the Mouse cursor visible, as
there's nothing to move to.
The value of Lastkey() will be set, even if a Mouse
button has been pressed.
Syntax: MouseKey()
Arguments: None.
Returns: Keyboard code exactly as Inkey(0), and 13 for Left
button and 27 for right button.
Usage: Msg('Press any key to continue')
MouseKey()
See Also:
MouseThere()
MouseGet()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson