SRL Archive - OSR Help

Whaaat??? Help.


Joe

2012-04-09 16:41:23

I want to cook food on a fire, after i have lit it. How do I make the mouse click the food sign on the cook box (the button that shows up in the chat box). I have the DTMs for it all, but how do I make it work?

bolshak25

2012-04-09 16:43:39

WaitColor(281,404,4476759,15,8500);
Wait(500+Random(500));
MouseBox(235,401,285,457,mouse_Left);

Exactly out of my cooker, it waits till it sees the color in the chatbox, then it clicks somewhere in the box

eska

2012-04-09 16:44:16

I think SRL has a function for that.

I'll look it up. Another thing you could do is use a dtm to find the button, or make a mousebox around the button.

Joe

2012-04-09 16:50:09

From: sir eska eau
I think SRL has a function for that.

I'll look it up. Another thing you could do is use a dtm to find the button, or make a mousebox around the button.


I always forget where the SRL function list is, and the dtm for the button has the same color as the chatbox around it.

PS, thanks bolshak will try it out

NKN

2012-04-09 17:07:17

I personally have it find the text color, then have it click a color in the cooked picture.

Abu

2012-04-09 17:15:42

Erm, easiest thing to do in my opinion, just create a box around it….

Sin

2012-04-09 17:16:11

Check out my tutorial on clicking chatbox widgets.

Search mate ;)

Joe

2012-04-09 17:57:44

From: abu_jwka
Erm, easiest thing to do in my opinion, just create a box around it….


Tutorial on making boxes please? I'm making this script for SRL membership, would it make me look better with boxes?

Sidenote. What i did so far is make it find the dtm and click it, then click the range, but it keeps clicking the dtm and then the range over and over so I dont get to cook anything…. tips on that?

Kyle Undefined

2012-04-09 19:11:18

Making boxes are easy. Select the color picker tool, and select the top left of the box, that will be your X1, Y1 coords. Then, select the bottom right of the box, these are your X2, Y2 coords.

Joe

2012-04-10 16:31:50

From: Kyle Undefined
Making boxes are easy. Select the color picker tool, and select the top left of the box, that will be your X1, Y1 coords. Then, select the bottom right of the box, these are your X2, Y2 coords.


That makes little to no sense to me, I know the color picker, but it still doesn't make sense to me. A little more in depth or maybe a tutorial in the forums would help. not saying your not helpful, just that im a little slow :)

Kyle Undefined

2012-04-10 18:09:31

So lets say you want to click on the Equipment Stats icon in the inventory. In the image below, the pink dot is the X1/Y1 and the yellow dot is the X2/Y2 points that you would select with the color picker tool in Simba.


(Not my account, found it on Google)

Joe

2012-04-12 10:20:47

rep+