Difference between revisions of "ClickMouse"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> procedure ClickMouse(x, y: Integer; Left: Boolean); </source> ==Availability== SCAR Divi 3.00 > Current ==Description== This f...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
<source lang="scar" lines="false"> | <source lang="scar" lines="false"> | ||
− | procedure ClickMouse( | + | procedure ClickMouse(const X, Y: Integer; const Btn: TMouseButton); |
</source> | </source> | ||
==Availability== | ==Availability== | ||
SCAR Divi 3.00 > Current | SCAR Divi 3.00 > Current | ||
+ | |||
+ | *Before 3.35 the '''Btn''' parameter was a [[Boolean]] with Left = True and Right = False. | ||
==Description== | ==Description== | ||
− | + | Generates a mouse click at the specified coordinate ('''X''', '''Y''') relative to the active 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 [[SetMousePos]] to set the cursor position to the given coordinate. An extended function with additional functionality is available as [[ClickMouseEx]]. | |
==Example== | ==Example== | ||
<source lang="scar"> | <source lang="scar"> | ||
begin | begin | ||
− | ClickMouse(500, 500, | + | ClickMouse(500, 500, mbRight); |
end. | end. | ||
</source> | </source> | ||
==See Also== | ==See Also== | ||
− | *[[ | + | *[[ClickMouseEx]] |
− | *[[ | + | *[[MouseBtnDown]] |
− | *[[ | + | *[[MouseBtnUp]] |
− | *[[ | + | *[[SetMousePos]] |
− | |||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Mouse Functions]] | [[Category:Mouse Functions]] |
Latest revision as of 12:25, 8 September 2012
Definition
procedure ClickMouse(const X, Y: Integer; const Btn: TMouseButton);
Availability
SCAR Divi 3.00 > Current
- Before 3.35 the Btn parameter was a Boolean with Left = True and Right = False.
Description
Generates a mouse click at the specified coordinate (X, Y) relative to the active 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 SetMousePos to set the cursor position to the given coordinate. An extended function with additional functionality is available as ClickMouseEx.
Example
begin ClickMouse(500, 500, mbRight); end.