Difference between revisions of "MouseBtnDown"
From SCAR Divi Manual
m (Freddy moved page HoldMouse to MouseBtnDown) |
|||
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
<source lang="scar" lines="false"> | <source lang="scar" lines="false"> | ||
− | procedure | + | procedure MouseBtnDown(const X, Y: Integer; const Btn: TMouseButton); |
</source> | </source> | ||
==Availability== | ==Availability== | ||
− | SCAR Divi 3.00 > | + | SCAR Divi 3.35 > Current |
+ | |||
+ | *Before 3.35 the '''Btn''' parameter was a [[Boolean]] with Left = True and Right = False. | ||
+ | |||
+ | ===Aliases=== | ||
+ | *HoldMouse (SCAR Divi 3.00 > 3.34) | ||
==Description== | ==Description== | ||
− | Holds a mouse button at the specified coordinate (''' | + | Holds a mouse button down 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== | ==Example== | ||
<source lang="scar"> | <source lang="scar"> | ||
begin | begin | ||
− | + | MouseBtnDown(500, 500, mbRight); | |
Wait(100); | Wait(100); | ||
− | + | MouseBtnUp(500, 500, mbRight); | |
end. | end. | ||
</source> | </source> | ||
==See Also== | ==See Also== | ||
− | *[[ | + | *[[MouseBtnUp]] |
*[[ClickMouse]] | *[[ClickMouse]] | ||
− | *[[ | + | *[[SetMousePos]] |
− | |||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Mouse Functions]] | [[Category:Mouse Functions]] |
Revision as of 12:25, 8 September 2012
Definition
procedure MouseBtnDown(const X, Y: Integer; const Btn: TMouseButton);
Availability
SCAR Divi 3.35 > Current
- Before 3.35 the Btn parameter was a Boolean with Left = True and Right = False.
Aliases
- HoldMouse (SCAR Divi 3.00 > 3.34)
Description
Holds a mouse button down 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.