SRL Archive - OSR Help

InvMouse Functions?


digitalninja

2012-08-27 14:02:57

Hi,

I am working on my 1st script and trying to learn more about the INVMOUSE I see in scripts. The script I am working on is fairly simple and I was going to try to get it to work using "color" finding and mouse functions but from what I can see in other scripts it appears using color might be over-kill.

Am I correct in thinking INVMOUSE can be used to simply click on stuff in your inventory? I think I have banking set up so all I need is my script to right click the 2nd item in my inventory and then deposit all. Pretty simple right?

Sorry if this has been covered somewhere … I did an adv search and couldnt find any tutorials on mouse control.

Thanks!

Digital Ninja

CephaXz

2012-08-27 14:07:25

Use this function.

DepositAll;

EDIT:
Oh wait, second inventory. Probably a pickaxe or something in first slot. Something like that would do.


InvMouse(2, mouse_Right);
WaitOption('All', 2000);

And it would be better if you need scripting help here :p :
http://villavu.com/forum/forumdisplay.php?f=70

digitalninja

2012-08-27 14:14:03

Amazing! So after the InvMouse function the number refers to the inventory location?
The waitoption I get … so SIMBA can "read" the right click options then left clicks it? is the 2000 the 2 second wait time?

Thanks for the help CephaXz!

I would love to see a tutorial just for mouse clicks … perhaps when I learn a little more I can create one myself :)

litoris

2012-08-27 14:24:27

From: digitalninja
Amazing! So after the InvMouse function the number refers to the inventory location?
The waitoption I get … so SIMBA can "read" the right click options then left clicks it? is the 2000 the 2 second wait time?

Thanks for the help CephaXz!

I would love to see a tutorial just for mouse clicks … perhaps when I learn a little more I can create one myself :)


You can either check the SRL documentation, or read through the include files. All/most functions are covered on both.

CephaXz

2012-08-27 14:24:46

From: digitalninja
Amazing! So after the InvMouse function the number refers to the inventory location?
The waitoption I get … so SIMBA can "read" the right click options then left clicks it? is the 2000 the 2 second wait time?

Thanks for the help CephaXz!

I would love to see a tutorial just for mouse clicks … perhaps when I learn a little more I can create one myself :)


Yes. And I don't think you will need a tutorial on mouse functions. At the functionlist on the left side of Simba, type in 'invmouse', and double click it. There are descriptions for the function, as well as the other functions.

Have fun scripting :D