use ComObj;
Delphi/Pascal code?
procedure TForm1.Button1Click(Sender: TObject);
var tmp:olevariant;
x,y:integer;
begin
tmp:= CreateOleObject('QMDispatch.QMFunction');
y:=tmp.FindPic(0,0,1023,767,'1.bmp',0.9);
x:=y div 8192;
y:=y mod 8192;
SetCursorPos(x+10,y+8);
end;