-
Артём (21.08.13 17:17) [20]
-
Артём (21.08.13 17:18) [21]
-
brother © (21.08.13 17:21) [22]значит [16]
-
mistikon (06.09.13 11:30) [23]Как вариант :)procedure PressButton(Button : HWND);
var
r : TRect;
p : TPoint;
begin
GetWindowRect(Button, r);
p := Point((r.Left + r.Right) div 2, (r.Top + r.Bottom) div 2);
SetCursorPos(p.X, p.Y);
mouse_event(MOUSEEVENTF_LEFTDOWN, p.X, p.Y, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, p.X, p.Y, 0, 0);
end;