Spaceblow
2014-10-01 09:23:10
So I'm adjusting my script and I want to make it look cleaner. My idea is to get the paint bitmap from pastebin but unfortunately, I can't get it to work. This is what I have:
So it has to get the text between 'paintstart' and 'paintend' from this link and then turn it into the paint. But instead of that, it gives me nothing, does anyone know what I'm doing wrong? I appreciate all the help, thanks in advance! :)
function getPaint(): string;
var
pastebinPage, paint: string;
begin
pastebinPage := getPage('http://pastebin.com/raw.php?i=Phph4XT2');
paint := between('paintstart', 'paintend', pastebinPage);
result := paint;
end; procedure proggyPaint();
begin
PaintBmp := BitmapFromString(575, 175, getPaint());
smartImage.drawBitmap(PaintBMP, point(1, 382));
smartImage.drawText(timeRunning, point(315, 420), 'UpCharsEx', true, 16645629);
smartImage.drawText(groupDigits(redberriesGot, ',') + ' (' + groupDigits(loadsDone, ',') + ' loads)', point(315, 460), 'UpCharsEx', true, 1252480);
smartImage.drawText(groupDigits(profit, ',') + ' (PH: ' + groupDigits(profitPerHour, ',') + ')', point(315, 500), 'UpCharsEx', true, 2207709);
end; So it has to get the text between 'paintstart' and 'paintend' from this link and then turn it into the paint. But instead of that, it gives me nothing, does anyone know what I'm doing wrong? I appreciate all the help, thanks in advance! :)
