Jump to content
Zodiakk93

Unknown Identifier?

Recommended Posts

program PerfectTiming;
var
 x, y: Integer;
begin
Repeat
 x := 90;
 y := 131;
 if(FindColortolerance(x, y, 13034751, 82, 131, 87, 131, 10))then
ClickWindMouse(77, 187, 2, 2, True);
until false
end;
end.

 

What is wrong with this script, and probably all of my other scripts that say 'Unknown identifier'?

Link to comment
Share on other sites

program PerfectTiming;
var
 x, y: Integer;
begin
Repeat
 x := 90;
 y := 131;
 if(FindColortolerance(x, y, 13034751, 82, 131, 87, 131, 10))then
ClickWindMouse(77, 187, 2, 2, True);
until false
end;
end.

 

What is wrong with this script, and probably all of my other scripts that say 'Unknown identifier'?

 

A couple of things

 

SCAR Divi Manual

 

Your standards need work aswell. You seem competent enough. Try reading some tutorials etc.

 

I'll be on SCAR IRC irc.scar-divi.com #SCAR if you want more help

 

Compiling version of your script

 

program PerfectTiming;
var
 x, y: Integer;
begin
Repeat
 x := 90;
 y := 131;
 if(FindColortol(x, y, 13034751, 82, 131, 87, 131, 10))then
ClickMouse(77, 187, mbLeft);
until false
end.

 

You need to use OSI if you wish to do human like things like 'ClickWindMouse' ;)

 

Thanks

Link to comment
Share on other sites

Thank you, what does OSI stand for by the way?

EDIT: Additionally, if I wanted it to press the Alt key instead of clicking, how would I do so? I have utfse a hundred times, but I have found mixed answers, mostly based on people doing combinations, while I am simply trying to get it to press alt for about 100 ms when the color appears.

Edited by Zodiakk93
Link to comment
Share on other sites

Thank you, what does OSI stand for by the way?

EDIT: Additionally, if I wanted it to press the Alt key instead of clicking, how would I do so? I have utfse a hundred times, but I have found mixed answers, mostly based on people doing combinations, while I am simply trying to get it to press alt for about 100 ms when the color appears.

 

Official SCAR Include

 

http://forums.scar-divi.com/forum-discussion/2545-scar-divi-forums-important-threads-index.html

http://forums.scar-divi.com/osi/119-what-osi-osi-mission-statement-official-scar-include.html

 

Category:Functions - SCAR Divi Manual

Category:Keyboard Functions - SCAR Divi Manual

 

Get on the IRC, k?

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