Log in

View Full Version : Clicking on a picture



rj
11-23-2012, 03:58 AM
Currently I am creating a script on a private server so i can get a feel for simba so then I can move on to runescape. Right now I am making a auto fighter, and before i go any further i want the bot to click on part of a picture(aka looting). I did a bitmap conversion and got this:

Bmp := BitmapFromString(14, 12, 'meJyTUdd2mPAfGcmoa+NCEAUMYI' +
'BfMVwlGptylXAEcQamFB53oonjsR2NTVOVxPgIiBhQAXLIYBX EjwD' +
'OzpG+');
How would i make the bot click on that picture. Btw here is what i have so far

program autofighterfortards;
Const
NPC=7984046;
tleft= 93;
tright = 139;
bleft=630;
bright=447;
tolorence=15;
time=12; // in seconds
rwait=1000

var
X,Y: Integer;
procedure getbanned;
begin
// fighting method
FindColorTolerance(X,Y,NPC,tleft,tright,bleft,brig ht,tolerence)
movemouse(x, y);
Wait(120 + Random(80));
ClickMouse(x, y, Mouse_Left);
Wait((time*1000) + Random(rwait));
end;
begin
repeat
getbanned;
until False;
end.

CRASH_OVERRIDE
12-02-2012, 12:01 AM
http://www.youtube.com/watch?v=SlS4q9MiFX4

rj
12-02-2012, 12:04 AM
this is old..

CRASH_OVERRIDE
12-02-2012, 12:08 AM
Yeah, but the method still works.

More recent:

Video:
http://www.youtube.com/watch?v=gj7yaRU-7no&list=UUnSjJe-xsSN6HpRsbwZcQMw&index=2&feature=plcp

Wirtten Tutorial:
http://villavu.com/forum/showthread.php?t=47374

And dont forget to learn the correct way to FreeDTMs: http://villavu.com/forum/showthread.php?t=78418

rj
12-02-2012, 12:10 AM
Yeah, but the method still works.

More recent:

Video:
http://www.youtube.com/watch?v=gj7yaRU-7no&list=UUnSjJe-xsSN6HpRsbwZcQMw&index=2&feature=plcp

Wirtten Tutorial:
http://villavu.com/forum/showthread.php?t=47374

And dont forget to learn the correct way to FreeDTMs: http://villavu.com/forum/showthread.php?t=78418

I dont need it. because my other scripts use bitmaps. because i learned how.

CRASH_OVERRIDE
12-02-2012, 12:15 AM
OMG,

I am only trying to help, why even post "How would i make the bot click on that picture." if you already know the answer:/

The links i posted also state how to click on the bitmap.

rj
12-02-2012, 12:34 AM
OMG,

I am only trying to help, why even post "How would i make the bot click on that picture." if you already know the answer:/

The links i posted also state how to click on the bitmap.

This post is old. rofl.