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>mousectr</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MOUSECTR

Syntax:                 MOUSECTR

Use:                    To determine the status of the left mouse button.
                        Use this command only when you want to test the
                        functionality of the center mouse button.  Have the
                        end-user hold down the center 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 cneter mouse button is down, and
                        a "N" if the center 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\mousectr
                        . FOXLIB = "MOUSE"
                        . call mousectr with FOXLIB
                        . ?substr(FOXLIB,1,1) = "Y"
                        .T.
                        . rele modu mousectr

                        From this example, the center 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 MOUSELFT MOUSESHW MOUSEHID

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