SRL Archive - Help

Basic Click Mouse Script?


ffcfoo

2010-06-21 23:02:14

Hello, I am really new to scripting and I created a basic move to x, y move mouse and click script. Well I basically wanted it to wait 5 seconds then go to the spot and click but that won't work, all it did was execute. Here is the code:

program click;

procedure Click;
begin
wait(5000)
ClickMouse(520, 271, True);
end;

begin
end.

If I am retarded and missed a big part into this, NOT MY FAULT! xD, I am very new to this.

Capricorn

2010-06-21 23:07:45

need to put your procedure click into the main loop which is the end with the period

begin
click;
end.

NCDS

2010-06-21 23:09:40

You never put your procedure in your main loop ;)


program click;

procedure Click;
begin
wait(5000)
ClickMouse(520, 271, True);
end;

begin
Click;
end.
Your main loop is that last begin..end nest. It is the code that is actually executed during runtime.

ffcfoo

2010-06-21 23:54:43

From: NCDS
You never put your procedure in your main loop ;)


program click;

procedure Click;
begin
wait(5000)
ClickMouse(520, 271, True);
end;

begin
Click;
end.
Your main loop is that last begin..end nest. It is the code that is actually executed during runtime.


:duh::duh::duh::duh::duh::duh: I TOTALY forgot! Thanks guys!