View Full Version : Basic Click Mouse Script?
ffcfoo
06-22-2010, 03:02 AM
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
06-22-2010, 03:07 AM
need to put your procedure click into the main loop which is the end with the period
begin
click;
end.
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
06-22-2010, 03:54 AM
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!
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.