1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-14 21:35:07 -05:00

Fix plugintest to use .loadlib rather than .loaddll

This commit is contained in:
Merlijn Wajer 2010-07-16 13:41:43 +02:00
parent 0ce91af636
commit dead653967

View File

@ -1,5 +1,5 @@
program new; program new;
{.LoadDLL libsmart} {$Loadlib libsmart}
function IsKeyDown(C:Char): Boolean; function IsKeyDown(C:Char): Boolean;
begin begin
Result := SmartIsKeyDown(ord(c)); Result := SmartIsKeyDown(ord(c));
@ -54,11 +54,12 @@ var
w,h:integer; w,h:integer;
begin begin
SmartSetup('http://world19.runescape.com/', 'plugin.js?param=o0,a1,m0', 765, 503); SmartSetup('http://world19.runescape.com/', 'plugin.js?param=o0,a1,m0', 765, 503);
SetTargetArray(SmartImageArray, 765,503); wait(30000);
{ SetTargetArray(SmartImageArray, 765,503);
getclientdimensions(w,h); getclientdimensions(w,h);
writeln(inttostr(w) + ' , ' + inttostr(h)); writeln(inttostr(w) + ' , ' + inttostr(h));
if findcolortolerance(w,h,clwhite,0,0,764,502,300) then if findcolortolerance(w,h,clwhite,0,0,764,502,300) then
smartmovemouse(w,h); smartmovemouse(w,h);
Wait(5000); Wait(5000);
savescreenshot(scriptPath + 'smart.bmp'); savescreenshot(scriptPath + 'smart.bmp'); }
end. end.