HideM, ShowM Commands

Purpose

Hides and unhides (shows) the mouse pointer.

Syntax

HideM

ShowM

Example

OpenW 1

HideM

Delay 2

ShowM

Delay 1

CloseW 1

16 bit example:

OpenW # 1

Print "To end press a mouse key"

Local border%, hidden?, mk%, mx%, my%

border% = _Y >> 1

hidden? = False

Do

Sleep

Mouse mx%, my%, mk%

If my% > border%

HideM

hidden? = True

Else If (my% <= border%) %& (hidden?)

ShowM

hidden? = False

EndIf

Loop Until mk%

If hidden? Then ShowM

CloseW # 1

Hides the mouse pointer as long as it moves within in the window, outside it’s still visible.

See Also

DefMouse, Mouse, MouseX, MouseK

{Created by Sjouke Hamstra; Last updated: 09/10/2014 by James Gaite}