Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Foxlib v1.0 - <b>mouselft</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MOUSELFT

Syntax:                 MOUSELFT

Use:                    To determine the status of the left mouse button.
                        Use this command only when you want to test the
                        functionality of the left mouse button.  Have the
                        end-user hold down the left mouse button on any non-
                        responsive (i.e. blank area of the screen) section
                        of the computer display.

Parameters:             MOUSE

Returns:                The first character in the sending parameter will
                        have a "Y" if the left mouse button is down, and a
                        "N" if the left mouse button is not down.  If you
                        did not pass the parameter correctly (e.g. FOXLIB
                        = "ZOUSE"), your sending parameter will be
                        unchanged.

Example:         . load c:\FOXLIB\mousedrv
                        . FOXLIB = "MOUSE"
                        . call mousedrv with FOXLIB
                        . ?substr(FOXLIB,1,1) = "Y"
                        .T.
                        . rele modu mousedrv

                        . load c:\FOXLIB\mouselft
                        . FOXLIB = "MOUSE"
                        . call mouselft with FOXLIB
                        . ?substr(FOXLIB,1,1) = "Y"
                        .T.
                        . rele modu mouselft

                        From this example, the left mouse button is down.

Notes:                  First determine if the mouse driver has been loaded
                        into memory using the FOXLIB command "MOUSEDRV"
                        before using this command.  Otherwise, you will get
                        unwanted results.

                        This command only works with FoxPro since it is the
                        only FOX DBMS that comes with mouse support.

See Also: MOUSEDRV MOUSETYP MOUSEVER MOUSELNG MOUSERHT MOUSESHW MOUSEHID MOUSECTR

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson