SRL Archive - OSR Help

Need help with a super simple script


akielies

2012-04-08 18:00:26

Hey guys,
I need to make a script that waits a little, then clicks here, then waits and does a few more clicks. This is not for runescape. I looked up the functions for mouse click and on the simba documentation it gives this:

program ClickMouse;

var x, y: integer;

begin
ClickMouse(x, y, mouse_Right);
end.

When I change the x and y to the ones I need it doesn't seem to be clicking on the client. I dragged the simba crosshairs on the client I need it for.

Also, I have never really dealt with scripts before.

Thanks

ogustuce

2012-04-08 21:22:02

try using dtms so u can make it something like this

thing := dtmfromstring('fasdfasef3fasdfasdfasdfa')
if findDTM (thing, X, Y,X1, Y1, X2, Y2) then
begin
mouse(x,y,true); //x,y = the dtm location and true = left click/false = right click
wait(1000); // this is milliseconds so 1 sec = 1000 ms
end;

if you dont know how to make dtm( deformable model template) then look a tutorial that teachs it. dtm are easy to use and make

NKN

2012-04-09 07:03:45

You could also have it find color.

Look at the color guides, this is easier than DTM's if you're just starting out.

Abu

2012-04-09 09:32:32

Do this:
SetupSRL;
ActivateClient;
Mouse(x, y, 0, 0, False); // replace with ClickMouse, it's faster