Log in

View Full Version : Needing help with my function for clicking my first inventory slot



Esschers
02-25-2012, 04:46 PM
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
02-25-2012, 04:47 PM
MMouseItem(1);
Wait(RandomRange(450, 750));
ClickMouse2(MOUSE_LEFT);

Try that. :)

Esschers
02-25-2012, 06:59 PM
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. :)