Jump to content
Modnick

scrips help

Recommended Posts

{BryceTheCoder}

var

x,y: Integer;

 

begin

repeat

if FindColor(x,y,16697856,525,528,564,532) then // Change XS,YS,XE,YE to the search region of somewhere in the bottom.

begin

wait(5); // Add a time delay is needed.

KeyDown(32); // Press down Spacebar.

KeyUp(32); // Lefts up on the Spacebar.

end;

 

until (false);

end.

 

im getting a type mismatch on line 10

Link to comment
Share on other sites

[sCAR]{BryceTheCoder}

var

x,y: Integer;

begin

repeat

if FindColor(x,y,16697856,525,528,564,532) then // Change XS,YS,XE,YE to the search region of somewhere in the bottom.

begin

repeat

wait(5); // Add a time delay is needed.

KeyDown(VK_SPACE); // Press down Spacebar.

KeyUp(VK_SPACE); // Lefts up on the Spacebar.

until GetKeyState(VK_F12);

end;

until (false);

end.[/sCAR]

 

try that?

Edited by Amberleaf
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...