krivetko-man
Member
- Joined
- Nov 22, 2008
- Messages
- 53
- Reaction score
- 62
- Banned
- #1
Code:
procedure TMainForm.Go;
var
p,xp:TPoint;
x,y:integer;
z:integer;
w:cardinal;
begin
GetCursorPos(p);
x:=p.X;
y:=p.Y;
xp:=ScreenToClient(p);
z:=MakeLParam(p.X,p.Y);
w:=WindowFromPoint(p);
sendmessage(w, WM_LBUTTONDOWN, MK_LBUTTON, z);
sendmessage(w, WM_LBUTTONUP, MK_LBUTTON, z);
sendmessage(w, WM_CHAR, 17, 0);
end;
Что не правильно? Помогите плиз!!!