mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-25 10:42:20 -05:00
Fixed some of the test-files.
This commit is contained in:
parent
900871715a
commit
ea200096c1
@ -1,76 +1,33 @@
|
|||||||
program new;
|
program new;
|
||||||
//http://www.hawaiisunshine.org/wp-content/uploads/2008/12/sunshine1.jpg
|
//http://farm4.static.flickr.com/3067/2612399892_7df428d482.jpg
|
||||||
|
{Make the above bitmap your target}
|
||||||
var
|
var
|
||||||
Bmp : integer;
|
Bmp : integer;
|
||||||
x,y : integer;
|
x,y : integer;
|
||||||
w,h : integer;
|
w,h : integer;
|
||||||
begin
|
begin
|
||||||
Bmp := BitmapFromString(37, 32, 'beNqFl3lwVuUVxp93veu3f1' +
|
Bmp := BitmapFromString(19, 14, 'beNoBHgPh/KNEgOv1WOH6' +
|
||||||
'lI+EKCLCkIAuI6oIBl0ylWweJerSm2atAaUJYgZCMLBAKyTSAh+w4' +
|
'q9fq/fnf+P7z/P//tO/0ZMS7ZsOPdMmHY8GGXMWBXMV8cMmGddCYf' +
|
||||||
'ERKnUpWoXERSBjtailDVACLS17Tj+13NvpB3tTHvnzOTOzb3vL+c5' +
|
'ta2fNe+a9LPcc/WmOf1b+Trfdryz+nZ//zj//368///pOHbZMiqYs' +
|
||||||
'azIGaIDMYMwQ3BBSkSkD4J4xCa4gNKQBZTClTS5tMBNQgAAY6C3mG' +
|
'GCXr9zYsJ3b8N5YMZ5cbyJb8eKVcyKXMmjUsmuvvP6euPweOD1mNr' +
|
||||||
'cN/zP/Wf0o3373oK0mfM8/E1UMMAa0YmZKQ4pvz6DUHzAJM3wwmpH' +
|
'd4u3a/v/u/v786fz3ld3aXsalacR8Z8B3XMF5ZcVprdRyrt6MbtGW' +
|
||||||
'/6t1j/D3f1He/Xyj/HFQgzhIEQEAHiQDIwAEjzbrjrQX2c7yNJwDn' +
|
'VsWWTr6Q2/z0ieHzetjqfODoodzZ7PXT/f/q+v/+0PnyddHNUL6YW' +
|
||||||
'/5vh+Tb5l/3Vx77mhdFDLEEMMSPdtMDAGmMAwXWOWxWfb4s6APT4a' +
|
'8V5cr1xx9Jq//Z8//7AqefNVM6sQLqL5PPZx+/litPUdd7hfNbhwN' +
|
||||||
'S5iBCDgRLT8KnjhcEJEJIgvP/ieOccPgZpDrsO/FIGAUcI8TeMwJP' +
|
'/V+f3Z//729P7/nufkPcS2aLuCzNNg/f1t/P7K////zvj3htXPRr2' +
|
||||||
'heOLI/FVkZj5YFAuWEscANTw8lDnEgcMgQeBDd9hQXjQggu6ack+z' +
|
'Xm86f2vPIwubLgtTJb93aidfT6O7D+f/h///9svT0U7vJtcR8//hP' +
|
||||||
'b0u5enHpAEZADXA3MDwSWZgwtSB5aG4+VmoBxGOfgqYC2wVNrjIaJ' +
|
'//63//7/y/z5vfD1wOLPhNKgOaxpc7uRyeK1s+vFaNHNbtXS0uHI/' +
|
||||||
'gQV/nKBdh7rnpMPKUecnGhCI044xdzZ9+5tV40ZXMPenIo/ujumRk' +
|
'/vK///8svD/hsbW+uiK//6v9f//z/j9suvzo9TWwOO2ud+qI6RZEK' +
|
||||||
'5oahA1cHCIEqsCqINZCV3Fpjhsp08CnDHe5RVAw86oeVLOoHN8W/T' +
|
'lUbrxdl9qUV8q3Ub+6tNCz/Pmx/P/1xPP839/V+P2o//rmwPv/puH' +
|
||||||
'+YywpWnMPfj2h/d/iTm3xBHAHcHUDT2mi3jrqmISgJVK2yXvFbqjd' +
|
'swtvVqti1ptiftd+ZJ6NUIKlZIaVLL6xgQ7J/Lq93bbqB5eiY+f/k' +
|
||||||
'ysYGah4S5xQ08b1t1CDZMi4COygKHANcBYYHbmwEUzpg33JUoSgiB' +
|
'xfX///fX//7X3fz/cd32wNvSs+O3sOScm9OeqtiJH6xIIKhWLKFRA' +
|
||||||
'aCWFKP+P75ca/U3j9iOH7pk2pHpRaAmwSaHJ0NbCRnkuxynFXhEN5' +
|
'KJJEqJHN6FNHKNAW75dfdeddc/Yrd+3tuzOaefqRbnWq9Cdhtijld' +
|
||||||
'SbHHosGpEsN9FzJtjBYYDcwCirPSm267pWbSLQuGDxrXn7rKO57O5' +
|
'WNmtWVoNF+MqxVJqlWJKJKG6I/UKs5hbtCWbNIQaVHYatXWq9yOq5' +
|
||||||
'dqyAuGrGeuB/CrjHZmZG6TYANQL3qpEE9g2YJvQa4ReBPYT4IfAFD' +
|
'8OqyGMaeZNKiMT7BuTrZ0aLpye8t0dspyM6xbL6dLLqBDJ6U8dKYy' +
|
||||||
'+sQ/34kl93Glg1etBrk8Z1j8hYb2MpkGfh8RCboL1kiynpWK6fuRa' +
|
'4upNx+J4yNt35OZ5yOh8W8eMRqNnQ6hWMqlTJaRXFaU5N6JBQrFIR' +
|
||||||
'D5lDcq2mvfMnaQnaj4g0AWSPQDNYIVSusddJ+ial5wA+AicANPnEa' +
|
'rdaKqlIL6ZNKqM8CKc5VZw04N8w//2m/vq5/v7M6vzghtfEhr+Ohc' +
|
||||||
'R/61SR3Tx+y+dXBnltGditfT+asJ/Up2rOumYQsTkZFAKqmtXC8Bj' +
|
'NgYbRYU7lKUKo3O6k9K6s3KqQ/KKRILp8/D6k7GKZBMZwwqL86/P2' +
|
||||||
'TiDzWFyD6p9KN8C1ADthuwyDWI1gDfB2OQJa20IRMqD4YWWkcNxP/' +
|
'S9f/j//zlzP73nNrfpMeprdp0hMlyqcxincxYY7tXOLFHDehUEnQ=' +
|
||||||
'AghfW6RNvYAV3XxbqGGjvT8Uoy9sWxN4LuKHYPjuy8YcSiRNpNnqr' +
|
'');
|
||||||
'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');
|
|
||||||
GetClientDimensions(w,h);
|
GetClientDimensions(w,h);
|
||||||
if FindBitmapToleranceIn(bmp,x,y,0,0,w-1,h-1,25) then
|
if FindBitmapToleranceIn(bmp,x,y,0,0,w-1,h-1,25) then
|
||||||
MoveMouse(x,y);
|
MoveMouse(x,y);
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
program new;
|
program new;
|
||||||
|
const
|
||||||
|
bmppath = 'C:\Carina_1_by_Eeitam.png';
|
||||||
var
|
var
|
||||||
p1, p2: TPointArray;
|
p1, p2: TPointArray;
|
||||||
w, h: integer;
|
w, h: integer;
|
||||||
@ -7,7 +9,7 @@ var
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
SetColorToleranceSpeed(2);
|
SetColorToleranceSpeed(2);
|
||||||
bmp := LoadBitmap('/home/merlijn/Pictures/Mooi/Carina_1_by_Eeitam.png');
|
bmp := LoadBitmap(bmppath);
|
||||||
SetTargetBitmap(bmp);
|
SetTargetBitmap(bmp);
|
||||||
GetClientDimensions(W, H);
|
GetClientDimensions(W, H);
|
||||||
writeln(inttostr(w) + ' : ' + inttostr(h));
|
writeln(inttostr(w) + ' : ' + inttostr(h));
|
||||||
|
@ -19,7 +19,6 @@ program Hoi;
|
|||||||
}
|
}
|
||||||
|
|
||||||
Const
|
Const
|
||||||
TestPath = './test';
|
|
||||||
|
|
||||||
fsFromBeginning = 0; // offset must be pos or 0
|
fsFromBeginning = 0; // offset must be pos or 0
|
||||||
fsFromCurrent = 1; // offset pos or neg
|
fsFromCurrent = 1; // offset pos or neg
|
||||||
@ -27,10 +26,12 @@ Const
|
|||||||
|
|
||||||
var
|
var
|
||||||
s, s2: string;
|
s, s2: string;
|
||||||
|
testPath : string;
|
||||||
myFile, myFile2: Integer;
|
myFile, myFile2: Integer;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
s := apppath;
|
testPath := scriptpath +'Test';
|
||||||
|
s := ScriptPath;
|
||||||
Writeln('Our current path is: ' + s);
|
Writeln('Our current path is: ' + s);
|
||||||
{ If DirectoryExists(s) Then
|
{ If DirectoryExists(s) Then
|
||||||
writeln('Directory ' + s + ' exists.'); }
|
writeln('Directory ' + s + ' exists.'); }
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
program new;
|
program new;
|
||||||
//http://nl.wikipedia.org/wiki/Lily_Allen
|
//http://nl.wikipedia.org/wiki/Lily_Allen
|
||||||
|
//This finds a mask of the text 'Op 24 september',
|
||||||
|
//so target wikipedia halfway down. Might not work because of
|
||||||
|
//different font's/sizes in your browser.
|
||||||
|
|
||||||
var
|
var
|
||||||
Bmp : integer;
|
Bmp : integer;
|
||||||
@ -14,7 +17,7 @@ begin
|
|||||||
'KvJQNKa5mEcyAhoauI6N8ymAlkxWpdtwgL2bhPXCJc7+E7JLNJsgG' +
|
'KvJQNKa5mEcyAhoauI6N8ymAlkxWpdtwgL2bhPXCJc7+E7JLNJsgG' +
|
||||||
'qQgL1jhHwX4VJdBsNZMbN5D//m/ob5XzwDp40wfg/jW9g024hbuPd' +
|
'qQgL1jhHwX4VJdBsNZMbN5D//m/ob5XzwDp40wfg/jW9g024hbuPd' +
|
||||||
'ritabVqaAj7zYVyxg9fol4M8FFG7YAfIG00k=');
|
'ritabVqaAj7zYVyxg9fol4M8FFG7YAfIG00k=');
|
||||||
Mask := CreateBitmapMask(Bmp);
|
Mask := CreateMaskFromBitmap(Bmp);
|
||||||
GetClientDimensions(w,h);
|
GetClientDimensions(w,h);
|
||||||
// if FindBitmapMaskTolerance(Bmp,x,y,0, 0,w-1, h-1,1,5) then
|
// if FindBitmapMaskTolerance(Bmp,x,y,0, 0,w-1, h-1,1,5) then
|
||||||
if FindMaskTolerance(Mask,x,y,0, 0,w-1, h-1,1,5) then
|
if FindMaskTolerance(Mask,x,y,0, 0,w-1, h-1,1,5) then
|
||||||
|
@ -2,4 +2,7 @@ program new;
|
|||||||
begin
|
begin
|
||||||
Writeln(AppPath);
|
Writeln(AppPath);
|
||||||
Writeln(ScriptPath);
|
Writeln(ScriptPath);
|
||||||
|
Writeln(IncludePath);
|
||||||
|
Writeln(FontPath);
|
||||||
|
writeln(PluginPath);
|
||||||
end.
|
end.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
program new;
|
program new;
|
||||||
const
|
const
|
||||||
SaveDir = 'C:\';
|
SaveDir = ScriptPath;
|
||||||
var
|
var
|
||||||
Bmpz : integer;
|
Bmpz : integer;
|
||||||
Bmp2 : integer;
|
Bmp2 : integer;
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
program new;
|
program new;
|
||||||
|
const
|
||||||
|
savepath = scriptpath;
|
||||||
var
|
var
|
||||||
Bmpz : integer;
|
Bmpz : integer;
|
||||||
w,h : integer;
|
w,h : integer;
|
||||||
@ -134,9 +136,9 @@ begin
|
|||||||
GetBitmapSize(bmpz,w,h);
|
GetBitmapSize(bmpz,w,h);
|
||||||
Writeln(inttostr(w) + '-' + inttostr(h));
|
Writeln(inttostr(w) + '-' + inttostr(h));
|
||||||
SetBitmapSize(Bmpz,w div 2, h div 2);
|
SetBitmapSize(Bmpz,w div 2, h div 2);
|
||||||
SaveBitmap(Bmpz,'/tmp/test.bmp');
|
SaveBitmap(Bmpz,savepath + 'test.bmp');
|
||||||
//FreeBitmap(Bmpz);
|
//FreeBitmap(Bmpz);
|
||||||
Bmpz := LoadBitmap('/tmp/test.bmp');
|
Bmpz := LoadBitmap(savepath + 'test.bmp');
|
||||||
SetBitmapSize(bmpz,w,h);
|
SetBitmapSize(bmpz,w,h);
|
||||||
SaveBitmap(Bmpz,'/tmp/test2.bmp');
|
SaveBitmap(Bmpz,savepath + 'test2.bmp');
|
||||||
end.
|
end.
|
||||||
|
@ -5,6 +5,6 @@ begin
|
|||||||
t:=getsystemtime;
|
t:=getsystemtime;
|
||||||
for i := 0 to 100 do
|
for i := 0 to 100 do
|
||||||
rs_getuptext;
|
rs_getuptext;
|
||||||
writeln(inttostr(round(getsystemtime - t) / 100));
|
writeln(floattostr(round(getsystemtime - t) / 100.0));
|
||||||
writeln(rs_getuptext);
|
writeln(rs_getuptext);
|
||||||
end.
|
end.
|
||||||
|
@ -22,23 +22,10 @@ begin
|
|||||||
if (FindColorsTolerance(cArr, TextCol, MCX1, P.y, MCX2, P.y + 13, 0)) then
|
if (FindColorsTolerance(cArr, TextCol, MCX1, P.y, MCX2, P.y + 13, 0)) then
|
||||||
begin
|
begin
|
||||||
B := GetTPABounds(cArr);
|
B := GetTPABounds(cArr);
|
||||||
// Result := GetTextAt(B.x1 - 1, B.y1 - 1, 1, 3, 0, 0, 0, 100, 'SmallChars');
|
Result := GetTextAt(B.x1 - 1, B.y1 - 1,1, 4, 1, 0, 0, 100, 'SmallChars');
|
||||||
|
|
||||||
{Result := Trim(GetTextAtEx(B.x1 - 1, B.y1 - 2, 0, SmallChars, False, False,
|
|
||||||
0, 1, TextCol, 80, False, tr_AllChars)); }
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
|
||||||
bmp: integer;
|
|
||||||
begin
|
begin
|
||||||
bmp := LoadBitmap('/home/merlijn/Programs/trunk/pics/17.bmp');
|
Writeln(GetChatBoxText(8, 0));
|
||||||
SetTargetBitmap(bmp);
|
|
||||||
// freebitmap(bmp);
|
|
||||||
{ GetChatBoxText(8, 0); }
|
|
||||||
|
|
||||||
{SetDesktopAsClient; }
|
|
||||||
|
|
||||||
// uncomment this for exception
|
|
||||||
freebitmap(bmp);
|
|
||||||
end.
|
end.
|
||||||
|
@ -15,8 +15,7 @@ begin
|
|||||||
movemouse(x,y);
|
movemouse(x,y);
|
||||||
end else
|
end else
|
||||||
writeln('not found');
|
writeln('not found');
|
||||||
if getdtm(dtm, ppdtm) then
|
ppdtm := GetDTM(Dtm);
|
||||||
writeln('yay');
|
|
||||||
printpdtm(tdtmtopdtm(pdtmtotdtm(ppdtm)));
|
printpdtm(tdtmtopdtm(pdtmtotdtm(ppdtm)));
|
||||||
dtm := addpdtm(ppdtm);
|
dtm := addpdtm(ppdtm);
|
||||||
freedtm(dtm);
|
freedtm(dtm);
|
||||||
|
@ -53,7 +53,7 @@ begin
|
|||||||
movemouse(p[0].x,p[0].y);
|
movemouse(p[0].x,p[0].y);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if FindDTMRotated(dtm, x, y, 0, 0, w-1, h-1, -3.14, 3.14, 0.05, a) then
|
if FindDTMRotatedAlternating(dtm, x, y, 0, 0, w-1, h-1, -3.14, 3.14, 0.05, a) then
|
||||||
begin
|
begin
|
||||||
writeln('Found DTM at ' + inttostr(x) + ', ' + inttostr(y) + ' Angle: ' + FloatToStr(a));
|
writeln('Found DTM at ' + inttostr(x) + ', ' + inttostr(y) + ' Angle: ' + FloatToStr(a));
|
||||||
movemouse(x,y);
|
movemouse(x,y);
|
||||||
|
@ -59,6 +59,6 @@ begin
|
|||||||
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);
|
||||||
savescreenshot('/tmp/smart.bmp');
|
Wait(5000);
|
||||||
//Wait(5000);
|
savescreenshot(scriptPath + 'smart.bmp');
|
||||||
end.
|
end.
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
program new;
|
program new;
|
||||||
begin
|
begin
|
||||||
SettingsGetSetDefaultKeyValue('Kanker/wat', 'YO WAT');
|
GetSettingValueDef('Testme/wat','Yo wat');
|
||||||
SettingsGetSetDefaultKeyValue('Kanker/wat2', 'YO WAT2');
|
GetSettingValueDef('Testme/wat2','Yo wat2');
|
||||||
writeln(SettingsGetKeyValue('Kanker/wat'));
|
Writeln(GetSettingValue('Testme/wat'));
|
||||||
|
if KeyIsDirectory('Testme') then
|
||||||
if SettingsIsDirectory('Kanker') then
|
Writeln('Testme has atleast one child!');
|
||||||
writeln('Kanker has at least one child!');
|
if KeyIsSetting('Testme/wat') then
|
||||||
if SettingsIsKey('Kanker/wat') then
|
writeln('wat exists in the parent Testme!');
|
||||||
writeln('wat exists!');
|
DeleteSetting('Testme/wat');
|
||||||
SettingsDeleteKey('Kanker/wat');
|
Writeln(GetSettingValue('Testme/wat2'));
|
||||||
writeln(SettingsGetKeyValue('Kanker/wat2'));
|
Writeln(GetSettingValue('Testme/wat'));
|
||||||
writeln(SettingsGetKeyValue('Kanker/wat'));
|
writeln(DeleteSubSettings('Testme'));
|
||||||
SettingsDeleteSubKeys('Kanker');
|
if KeyIsSetting('Testme') then
|
||||||
if SettingsIsKey('Kanker') then
|
writeln('Testme is a key now!');
|
||||||
writeln('kanker is a key now!');
|
|
||||||
end.
|
end.
|
||||||
|
@ -34,6 +34,4 @@ begin
|
|||||||
end;
|
end;
|
||||||
Writeln(y);
|
Writeln(y);
|
||||||
Writeln(TPointArray([Point(5,5),Point(20,1337),point(1,2)]));
|
Writeln(TPointArray([Point(5,5),Point(20,1337),point(1,2)]));
|
||||||
J := TForm.Create(nil);
|
|
||||||
Writeln(j.canvas);
|
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user