SRL Archive - Help and Support

how do i click on options at chatbox


Laimonas171

2012-10-20 09:51:10

I mean with no "ugly cords" like (I need to click on goldbar)
mouse(260 ,478 ,5 ,5 , true); //I need to click on goldbar

pretty sure here should be something more intelligent:)

Ashaman88

2012-10-20 09:58:15

You could make a dtm of the gold bar and only search in chatbox…or you could move the mouse there and wait for the uptext… or you could move the mouse there and wait for the dark blue color to appear in chatbox….a bunch of solutions. I would at least have one check for it besides a blind click

Laimonas171

2012-10-20 09:59:45

From: Ashaman88
You could make a dtm of the gold bar and only search in chatbox…you could move the mouse there and wait for the uptext…you could move the mouse there and wait for the dark blue color to appear in chatbox….a bunch of solutions. I would at least have one check for it besides a blind click


Like that? not sure or coord are good for that? because this one not really works for me
If (FindDTM(goldBar, x, y, MCX1, MCY1, MCX2, MCY2)) then
mouse(x ,y ,5 ,5 , true);

riwu

2012-10-20 10:11:58

Probably not a well made DTM. (if you are using the one that you use to find inv it's probably not going to work) I'd say for a simple click like this just either do an uptext check, (not encouraged as the text may be obfuscated by white background etc) or WaitColorCount (simple and reliable if you check for a good color with sufficient pixel–or even using InRange)

Laimonas171

2012-10-20 10:24:23

From: riwu
Probably not a well made DTM. (if you are using the one that you use to find inv it's probably not going to work) I'd say for a simple click like this just either do an uptext check, (not encouraged as the text may be obfuscated by white background etc) or WaitColorCount (simple and reliable if you check for a good color with sufficient pixel–or even using InRange)


I use same dtm, it's good. it works at bank screen and inv very well :)

riwu

2012-10-20 10:33:32

From: Laimonas171
I use same dtm, it's good. it works at bank screen and inv very well :)

Do they look exactly the same in inv as in the chatbox? Also exactly the same size? If they do then sure you can.

NKN

2012-10-20 12:10:51

Use a box.

Search if the gold color is in a box, if it is, click inside the box with MouseBox.

litoris

2012-10-20 12:40:31

Many solutions, as peopel pointed out. I used a mousebox after doing the thing that brings up the screen. You could do a color count somewhere on the dark area to make sure the screen is on, because the colors there are static AFAIK.

cause

2012-10-20 14:08:39

I made a gold smelter and used a DTM for the chatbox, worked pretty well.

Sin

2012-10-20 14:10:15

http://villavu.com/forum/showthread.php?t=76501

Flight

2012-10-20 14:18:35

You might look over this:
http://villavu.com/forum/showthread.php?t=89459

Noob King

2012-10-25 02:20:17

I use a box, search for a color, then click inside the box if it exists.