求助 如何调用按键精灵插件dll-CSDN论坛

2024-11-25 00:25:43
推荐回答(1个)
回答1:

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;