Jump to content
Incommodious

Until.....?

Recommended Posts

I am writing a script that requires me to hold down control until FindColor(1638350,352,204) disappears. This is what i have so far i just dont know how to finish coding this.

 

if FindColor(1638350,352,204) then

VKeyDown(39);

Wait(250);

repeat

VKeyDown(17);

Wait(200);

VKeyUp(17);

until ???????? // untill the FindColor(1638350,352,204) disappears.

Link to comment
Share on other sites

requires me to hold down control

So do you want SCAR to hold down control, or are you going to do it?

 

if you type VK_ then hit CTRL+Space, in SCAR you can see the VKeys that you can use. There is: VK_LCONTROL, and VK_RCONTROL

So then you could do VKeyDown(VK_LCONTROL); Or you can see the vkeys here - http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx

 

Anyway it seems Jani has posted the corrected script. I suggest you read the All In One Beginner Tutorial for SCAR Divi.

 

or

 

until not (GetColor(352, 204) = 1638350);

 

Six of one, half dozen of another. Some people find the use of not confusing. Some people prefer it.

 

What I find confusing, is using <<< and >> for bit shifts or other meanings in programming languages x.x So glad we have shl, and shr.

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