Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Nov 21, 2024 7:44 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Compiling Issues
Thanked: 0 time(s)  Unread post Posted: Sun May 24, 2015 6:56 pm 
New User
New User
User avatar



Joined: Thu Dec 13, 2012 10:53 pm
Posts: 6
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 16
Hey, recently bought the 1 month license and have just now came across a common issue.

Whilst viewing code I sometimes have to completely abandon it as in code view it says it is failing to compile it.

The error is
Code:
---------------------------
Compilation error.
---------------------------
There was a compilation error near line: 2, trying to parse: "Color.Near coordinate is within (RGB range)("171", "2", "2", "60", "985", "803", "20")"
---------------------------
OK   
---------------------------


The code is

Code:
 begin
     Color.Near coordinate is within (RGB range)("171", "2", "2", "60", "985", "803", "20")
     begin
          Keyboard.Press key("g")
     end
 end
 


The macro works fine as long as I don't view the code so I can't figure out why it's doing this.


EDIT : Turns out whilst the program makes the code, it doesn't type the "if" statement before the Color.Near and as such it won't compile.


Top
 Profile  
Reply with quote  
 Post subject: Re: Compiling Issues
Thanked: 0 time(s)  Unread post Posted: Mon May 25, 2015 5:17 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 2259
Location: USA
Been thanked: 535 time(s)
Has thanked: 38 time(s)
Contribution Points: 17741
You can use "if" there...I posted a response on your other thread that uses it, but if you can't get it to work you can copy/paste from here:
Code:
 begin
     if  Color.Near coordinate is within (RGB range)("175", "8", "14", "10", "282", "661", "5")
          begin
               Mouse.Move to coordinate("282", "661")
               Macro.Pause("250")
               Mouse.Move to coordinate("290", "670")
          end
 end
Just change the "mouse.move" parts to "press G" (or whatever your using) and change it to your color/coordinates.

_________________
----------------------------------------Syrifina---------------------------------------------------
PM me for licenses and/or licensing information: Click Here
[Be sure to include and update your profile with your BE ID]

Forum Rules
Reminder of rules regarding Contribution points
Getting started in 1, 2, 3
Virtual Drivers; Manual Installers


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group