SRL Archive - Help

Needing help with my function for clicking my first inventory slot


Esschers

2012-02-25 11:46:27

For a RS script that I'm making I have to left click my first inventory slot. Somehow it's not doing this right though, can someone see a mistake in my script?

Procedure EmptyGiantPouch;

begin
Wait(RandomRange(1350, 50));
MouseItem(1, mouse_move);
Wait(RandomRange(300, 150));
ClickMouse2(True);
Wait(RandomRange(400, 50));
end;

Thank you :)

Edit: it seems to move the mouse in the right direction, but the click seems to be missing

RISK

2012-02-25 11:47:48

MMouseItem(1);
Wait(RandomRange(450, 750));
ClickMouse2(MOUSE_LEFT);

Try that. :)

Esschers

2012-02-25 13:59:04

Thank you,

I tried your code as well, but kept having the same problem. After making sure that the code wasn't the problem, I increased the time which fixed it. :)