Log in

View Full Version : MouseItem and InvMouse help?



Ian
10-30-2012, 12:09 AM
Hey guys, quick question (I think)

Whenever I try to use these functions I get a Type Mismatch error.

InvMouse(3, leftClick);
MouseItem(3, true);

Any ideas why I get this error with these functions?

Thanks

riwu
10-30-2012, 12:22 AM
The second parameter, Action, can only be a byte. Hence you cannot pass a Boolean, or the type fnct_ActionOptions to it.

Use mouse constants like mouse_Left, mouse_Right, mouse_move.

Ian
10-30-2012, 12:28 AM
The second parameter, Action, can only be a byte. Hence you cannot pass a Boolean, or an unknown identifier (leftclick) to it.

Use mouse constants like mouse_Left, mouse_Right, mouse_move.

Thanks! Should someone should change the example here?: http://docs.villavu.com/srl-5/inventory.html#mouseitem

Also, I notice you are always the person to reply to scripting help, you're awesome :)