Difference between revisions of "ReleaseMouse"

From SCAR Divi Manual
Jump to: navigation, search
(Freddy moved page ReleaseMouse to MouseBtnUp)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
#REDIRECT [[MouseBtnUp]]
+
==Definition==
 +
<source lang="scar" lines="false">
 +
procedure ReleaseMouse(x, y: Integer; Left: Boolean);
 +
</source>
 +
 
 +
==Availability==
 +
SCAR Divi 3.00 > 3.34
 +
 
 +
==Description==
 +
Releases a mouse button at the specified coordinate ('''x''', '''y''') relative to the selected client window. If '''Left''' is [[true]], the left button will be released, if '''Left''' is [[false]] the right button will be released. 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==
 +
<source lang="scar">
 +
begin
 +
  HoldMouse(500, 500, False);
 +
  Wait(100);
 +
  ReleaseMouse(500, 500, False);
 +
end.
 +
</source>
 +
 
 +
==See Also==
 +
*[[HoldMouse]]
 +
*[[ClickMouse]]
 +
*[[ReleaseMouseMid]]
 +
*[[MoveMouse]]
 +
 
 +
[[Category:Deprecated Functions]]

Latest revision as of 14:37, 8 September 2012

Definition

procedure ReleaseMouse(x, y: Integer; Left: Boolean);

Availability

SCAR Divi 3.00 > 3.34

Description

Releases a mouse button at the specified coordinate (x, y) relative to the selected client window. If Left is true, the left button will be released, if Left is false the right button will be released. 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
  HoldMouse(500, 500, False);
  Wait(100);
  ReleaseMouse(500, 500, False);
end.

See Also