Jump to content
Viggo

Add repeat loop

Recommended Posts

Hello

 

Can someone tell me where do i put the repeat loop on this script ?

program New;
begin
vkeydown(VK_CONTROL);
wait(5000);
vkeyup(VK_CONTROL);
vkeydown(102);
wait(500);
vkeyup(102);
wait(500);
vkeydown(100);
wait(500);
vkeyup(100);
wait(500)
vkeydown(102);
wait(100);
vkeyup(102);

end.

Link to comment
Share on other sites

On 9/18/2021 at 3:36 AM, Viggo said:

Hello

 

Can someone tell me where do i put the repeat loop on this script ?

program New;
begin
vkeydown(VK_CONTROL);
wait(5000);
vkeyup(VK_CONTROL);
vkeydown(102);
wait(500);
vkeyup(102);
wait(500);
vkeydown(100);
wait(500);
vkeyup(100);
wait(500)
vkeydown(102);
wait(100);
vkeyup(102);

end.

Well it all depends what actions you want to repeat :P 

Did you want the entire thing to repeat forever?

If so, you can wrap the entire thing in a repeat / until.

So it'll be after the "begin" and before the "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...