Microsoft KB Archive/19953

Function 3–Position and Button Status PSS ID Number: Q19953 Article last modified on 05-27-1993 PSS database name: H_Mouse

1.x 2.x 3.x 4.x 5.x 6.x 7.x 8.x

MS-DOS

Summary:

You can use mouse function 3, Get Mouse Position and Status, to return the current cursor position and button status.

Inputs:

AX = 3

Outputs:

BX = button status CX = cursor position (horizontal) DX = cursor position (vertical) BX (button status): Bit 0 = left button (1 if pressed) Bit 1 = right button (1 if pressed)

Additional reference words: 7.00 7.04 7.05 8.00 8.10 8.20 9.00

Copyright Microsoft Corporation 1993.