Log in

View Full Version : Trying to make mouse clicking work.



Daher
08-14-2012, 06:29 PM
I'm trying to make Mouse clicking work in SIMBA
i'm currently using:

var
A:Integer;
B:Integer;

The var for clicking.

if findcolor(A,B,7763583,94,142,544,372) then
ClickMouse(A,B,0,0,true);


the integer true isn't working, i've no idea what to use for left clicking....

x[Warrior]x3500
08-14-2012, 06:33 PM
true isnt an integer, its a boolean value. i would recommend you look at some beginner tutorials.

CephaXz
08-14-2012, 06:36 PM
1. You did not moved your mouse before clicking.
2. You should use ClickMouse2 after moving your mouse.
3. You can group integer A and B together when declaring them.

NKN
08-14-2012, 06:44 PM
Mouse(A,B,0,0,1)
Will move your mouse and click it for you at the end. 1 is for left click, and I think 2 is for right click, but I use mouse_right, or something like that. Open up Mouse.Simba to check what all the mouse functions are for you, it'll make it a lot simpler.