I'm looking to create a (hopefully) simple script for a different game. What I need to know is if I can take two precise pictures, compare them, and then click the differences. Let me know if there is such thing or not!
~Sandstorm
I'm looking to create a (hopefully) simple script for a different game. What I need to know is if I can take two precise pictures, compare them, and then click the differences. Let me know if there is such thing or not!
~Sandstorm
SandStorm, it should be pretty easy, and sorry for the late reply.
SCAR only accepts bitmaps though.
SCAR Code:function BitmapFromString(Width, Height: Integer; data: string): Integer;
procedure GetBitmapSize(Bitmap: Integer; var Width, Height: Integer);
function FastGetPixel(bitmap: Integer; x, y: Integer): TColor;
SCAR Code:for i:= Width to Height do
begin
t:= FastGetPixel(Bitmapone);
p:= FastGetPixel(Bitmap2);
if t <> p then Mouse (Width,Height,0,0,true);
end;
[QUOTE]<GoF`> oh no its Raymooond
<Raymooond> Heya
<GoF`> is it ray or some other ray?
<LeeLokHin> No idea
<LeeLokHin> Raymond, what's the game you like the most?
<Raymooond> Runescape
<-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]
Alright. Is there a way to get the bitmap directly in the script? There are something like 10-15 pictures, and I don't want to load them all. Thanks for the reply, it does look rather easy.
Again, sorry for the late reply.
I think you can
SCAR Code:s:= GetPage('www.xxyy.com/Waffle1.bmp');
i:= BitmapFromString2(true, s);
Etc. I'm not too sure if this works. Take a look at MK's iron miner and how he download's bitmaps from the net.
EDIt: According to wizzup:
<Wizzup> LeeLokHin:
<Wizzup> About your post at sandstorms thread
<Wizzup> do GetPage, write it to a file
<Wizzup> then do LoadBitmap(filepath: string);
[QUOTE]<GoF`> oh no its Raymooond
<Raymooond> Heya
<GoF`> is it ray or some other ray?
<LeeLokHin> No idea
<LeeLokHin> Raymond, what's the game you like the most?
<Raymooond> Runescape
<-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]
I'm looking to take a picture and make it a bitmap during runtime :/.
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)
Would that stop it from working senrath? If so, I'm out of luck :/.
Give me a second and I'll link the game.
Here it is:
http://www.addictinggames.com/madworld.html
It shouldn't. It just means you can't do it the easy way with GetPage and LoadBitmap.
If there is some way to split a bitmap, you could use the suggested CopyClientToBitmap and split it down the middle before comparing.
If you ever get a method to work, just remember that with Mad World, you'd also end up having to mirror one of the images. You'd also have to do something different with the levels that aren't truly mirrors of each other.
There are currently 1 users browsing this thread. (0 members and 1 guests)