Difference between revisions of "MouseBtnUp"

From SCAR Divi Manual
Jump to: navigation, search
 
Line 6: Line 6:
 
==Availability==
 
==Availability==
 
SCAR Divi 3.35 > Current
 
SCAR Divi 3.35 > Current
 
*Before 3.35 the '''Btn''' parameter was a [[Boolean]] with Left = True and Right = False.
 
  
 
===Aliases===
 
===Aliases===

Latest revision as of 13:36, 8 September 2012

Definition

procedure MouseBtnUp(const X, Y: Integer; const Btn: TMouseButton);

Availability

SCAR Divi 3.35 > Current

Aliases

  • ReleaseMouse (SCAR Divi 3.00 > 3.34)

Description

Releases a held mouse button at the specified coordinate (X, Y) relative to the selected client window. The given TMouseBtn Btn indicates what mouse button has to be used. In the event that the current cursor position does not equal that of the given coordinates, the function will call MoveMouse to set the cursor position to the given coordinate.

Example

begin
  MouseBtnDown(500, 500, mbRight);
  Wait(100);
  MouseBtnUp(500, 500, mbRight);
end.

See Also