SRL Archive - Help

Complete Noob Question - Please Help?


jis777

2012-02-10 03:45:47

Hey guys! I'll get to the point. Basically, I want to learn how to use Simba (and Pascal in general at first).

However, for some reason the ClickMouse() procedure isn't working. This is my "script".


program new;
begin
ClickMouse(150,150,mouse_Left);
end.

Completely and utterly pointless and yet…..it doesn't work.

WHY!? It SHOULD work. The mouse doesn't move…it doesn't do anything! I've tried replacing mouse_Left with 0,1,2,true etc. etc. and yet nothing works.

Yes, I KNOW that you can just use SRL and use the MMouse procedure, but my example SHOULD work and yet it doesn't. Why not?

JuKKa

2012-02-10 04:04:02

clickmouse just clicks. use MMouse

jis777

2012-02-10 18:46:47

From: JuKKa
clickmouse just clicks. use MMouse


Yeah but, it's not even doing that. It's not doing ANYTHING.

You said: "it just clicks", but its NOT clicking.

jis777

2012-02-13 00:53:45

BUMP! Why is this question so hard to answer?

RyGuy

2012-02-13 01:07:13

You have to move the mouse to the position before clicking on that position, don't you?

ShawnjohnSJ

2012-02-13 01:21:56

From: RyGuy
You have to move the mouse to the position before clicking on that position, don't you?


No. When you use ClickMouse() it automatically teleports the cursor to the said coordinates.

I'm not sure what's wrong with your script.. I honestly don't see anything wrong with it, are you running Simba under Windows or with Wine?

Sockz

2012-02-13 04:11:35

hey buddy try this

mouse(150, 150, 0, 0, 1);

Its in the format mouse(x, y, ranx, rany, button)

leaving ranx and rany 0 will click directly where you want it to

and for the button, 1 = left click, 0 i think = right click

goodluck :D

Sex

2012-02-13 05:27:26

It doesn't work for me either, what the hell?
MoveMouse does though..