XabdullahX
2009-06-05 19:14:52
Hi.
I dont know if this is usefull, just a product of boredom.
It detects if your click is red (action-click) or yellow (empty-click)
I dont know if this is usefull, just a product of boredom.
It detects if your click is red (action-click) or yellow (empty-click)
Function ClickColor: String;
var
x, y : Integer;
begin
GetMousePos(x,y);
If (FindColor(x,y,65535,MSX1,MSY1,MSX2,MSY2)) then
begin
Result := 'yellow'
end else if (FindColor(x,y,255, MSX1,MSY1,MSX2,MSY2)) then
begin
Result := 'red'
end;
end;