Jump to content
Modnick

script working but now need a fix

Recommended Posts

hey guys so i got the feelthebeats script working

{BryceTheCoder}
var
x,y: Integer;
begin
repeat
if FindColor(x,y,15448832,525,411,564,418) then // Change XS,YS,XE,YE to the search region of somewhere in the bottom.
begin
repeat
Wait(5)
VKeyDown(VK_space)
VKeyUp(VK_space) 
until GetKeyState(VK_F12);
end;
until (false);
end.

but when i start it it detects the note and hits it multiple times, you can test it at feelthebeats.com

Link to comment
Share on other sites

hey guys so i got the feelthebeats script working
{BryceTheCoder}
var
x,y: Integer;
begin
repeat
if FindColor(x,y,15448832,525,411,564,418) then // Change XS,YS,XE,YE to the search region of somewhere in the bottom.
begin
repeat
Wait(5)
VKeyDown(VK_space)
VKeyUp(VK_space) 
until GetKeyState(VK_F12);
end;
until (false);
end.

but when i start it it detects the note and hits it multiple times, you can test it at feelthebeats.com

 

"when i start it it detects the note and hits it multiple times,"

You need to elaborate a little more:/

Like it clicks the "Space" button not just once but many times? If so,

I told you in the comment add a delay by using: wait(5);

But use something greater maybe: wait(90);

So try:

{BryceTheCoder}
var
x,y: Integer;
begin
repeat
if FindColor(x,y,15448832,525,411,564,418) then // Change XS,YS,XE,YE to the search region of somewhere in the bottom.
begin
repeat
Wait(5);
VKeyDown(VK_space);
VKeyUp(VK_space) ;
Wait(90); // Adding a delay so it doen't  search for the color again so quickly.
until GetKeyState(VK_F12);
end;
until (false);
end.

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...