Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Tue Sep 18, 2018 9:02 pm

All times are UTC




Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Compilation error? Please help=)
Thanked: 0 time(s)  Unread post Posted: Mon Aug 15, 2011 12:02 pm 
Contributor
Contributor
User avatar



Joined: Mon Aug 15, 2011 11:51 am
Posts: 56
Location: TURKEY
Been thanked: 1 time(s)
Has thanked: 6 time(s)
Contribution Points: 410
Hello everyone, Firstly i highly enjoyed to application it is very very good.
BUT
I am having troubles with a thing which is in this picture:
Image
When i create my macros in the design screen, everything is ok but when i cchange to code view and change stuff then want to go back to design screen, it gives the error; or when i try to start the macro the error comes too: Compilation error: color is in rgb range or bla bla.
Can you help me with that issue, i can give more information if you ask any regarding this matter, thanks in advance.
P.S: Gigus i love your works and youtube channel =)
P.S.S: What does parse mean i cant find it anywhere..

_________________
-TLBunny


Top
 Profile  
Reply with quote  
 Post subject: Re: Compilation error? Please help=)
Thanked: 0 time(s)  Unread post Posted: Mon Aug 15, 2011 12:35 pm 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4523
Been thanked: 1190 time(s)
Has thanked: 132 time(s)
Contribution Points: 32841
Please post the full code here, then I will have a look.

_________________
Blue Eye - Developer / Moderator
Code:
Gigus


Please read the rules about contribution points - click here

Do you know everything about BE, the forum, licenses and contribution points?
Please take a minute to read this introduction & guidelines.


Top
 Profile  
Reply with quote  
 Post subject: Re: Compilation error? Please help=)
Thanked: 0 time(s)  Unread post Posted: Mon Aug 15, 2011 12:53 pm 
Silver Contributor
Silver Contributor
User avatar



Joined: Sun Feb 07, 2010 9:11 pm
Posts: 207
Been thanked: 5 time(s)
Has thanked: 19 time(s)
Contribution Points: 5596
It means there is a syntax error. Which means let's say I wanted to write a if statement i wrote: "ig" instead of if, and then it can't compile.

But I can't see a syntax error in your code, and I have tried to compile the code, and there was not any problems. Hmm :/

Parse means it try to parse (insert?) into the compiler which "transforms" the source code into a language the program understand. Actually pretty hard to explain :p

Have you tried to import the Hunter Bot again, and see if that works?

_________________
Code:
Martin

Full-time Macroholic


Top
 Profile  
Reply with quote  
 Post subject: Re: Compilation error? Please help=)
Thanked: 0 time(s)  Unread post Posted: Mon Aug 15, 2011 1:09 pm 
Contributor
Contributor
User avatar



Joined: Mon Aug 15, 2011 11:51 am
Posts: 56
Location: TURKEY
Been thanked: 1 time(s)
Has thanked: 6 time(s)
Contribution Points: 410
Code:
 Begin
     Variable.Set("Kill", "0")
     begin loop("-1")
          Window.Bring to front("Eden Eternal", "No")
          // Checks HP and Uses HP Pots
          Function.Execute("HP")
          // Checks MP and Uses MP Pots
          Function.Execute("MP")
          // Summons Tiger
          Function.Execute("Tiger")
          // Selects Target
          Function.Execute("Target")
          // Kill Counter
          Function.Execute("Counter")
          Window.Bring to front("Eden Eternal", "No")
          // Casts Buffs
          // Function.Execute("Buffs")
          // Starts Attacking
          Function.Execute("Attacks")
          // Stops when Capcha pops
          Function.Execute("Capcha")
     end
 end

function("HP")
     begin
          Memory.Get value("_Launcher", "_Launcher.exe+862E70,C,4", "4", "currentHP")
          Memory.Get value("_Launcher", "_Launcher.exe+862E70,C,48", "4", "maxHP")
          Macro.Pause("250")
          Variable.Evaluate (Math)("({currentHP} / {maxHP}) * 100", "percentage")
          if  Variable.Is between (Math)("percentage", "0", "60")
               begin
                    Keyboard.Hold keys("{HP Pots}")
                    Macro.Pause("50")
                    Keyboard.Release keys("{HP Pots}")
                    Macro.Pause("50")
               end
     end
function

function("MP")
     begin
          Memory.Get value("_Launcher", "_Launcher.exe+862E70,C,8", "4", "currentMP")
          Memory.Get value("_Launcher", "_Launcher.exe+862E70,C,4C", "4", "maxMP")
          Macro.Pause("250")
          Variable.Evaluate (Math)("({currentMP} / {maxMP}) * 100", "percentageMP")
          if  Variable.Is less than (Math)("percentageMP", "50")
               begin
                    Keyboard.Hold keys("{MP Pots}")
                    Macro.Pause("50")
                    Keyboard.Release keys("{MP Pots}")
                    Macro.Pause("50")
               end
     end
function

function("Tiger")
     if  Color.At coordinate is not within (RGB range)("249", "191", "200", "3", "190", "141")
          begin
               Keyboard.Hold keys("{Tiger}")
               Macro.Pause("2500")
               Keyboard.Release keys("{Tiger}")
          end
function

function("Target")
     begin
          Memory.Get value("_Launcher", "_Launcher.exe+872C7C", "1", "targets")
          if  Variable.Is equal to("targets", "0")
               or
               Color.At coordinate is not within (RGB range)("104", "79", "3", "0", "465", "86")
               and
               Color.At coordinate is within (RGB range)("249", "191", "200", "3", "190", "141")
               begin
                    Keyboard.Hold keys("{<tab>}")
                    Macro.Pause("50")
                    Keyboard.Release keys("{<tab>}")
                    Macro.Pause("50")
               end
     end
function

function("Counter")
     begin
          Macro.Pause("50")
          Window.Close("Message", "no")
          Macro.Pause("50")
          Variable.Increment (Math)("Kill")
          Macro.Pause("50")
          Variable.Evaluate (Text)("{Kill} Kills", "Num")
          Macro.Pause("50")
          Window.Display message box("{Num}", "no")
          Macro.Pause("50")
          Window.Bring to front("Eden Eternal", "no")
     end
function

function("Buffs")
     begin
          Keyboard.Hold keys("{Buff 1}")
          Macro.Pause("50")
          Keyboard.Release keys("{Buff 1}")
          Macro.Pause("500")
          Function.Execute("HP")
          Function.Execute("MP")
          Keyboard.Hold keys("{Buff 2}")
          Macro.Pause("50")
          Keyboard.Release keys("{Buff 2}")
          Macro.Pause("500")
          Function.Execute("HP")
          Function.Execute("MP")
          // Keyboard.Hold keys("{Buff 3}")
          // Macro.Pause("50")
          // Keyboard.Release keys("{Buff 3}")
          // Macro.Pause("500")
          // Keyboard.Hold keys("{Buff 4}")
          // Macro.Pause("50")
          // Keyboard.Release keys("{Buff 4}")
          // Macro.Pause("500")
     end
function

function("Attacks")
     begin
          Keyboard.Hold keys("{Normal Attack}")
          Macro.Pause("50")
          Keyboard.Release keys("{Normal Attack}")
          Macro.Pause("500")
          Function.Execute("HP")
          Function.Execute("MP")
          Keyboard.Hold keys("{Skill 1}")
          Macro.Pause("50")
          Keyboard.Release keys("{Skill 1}")
          Macro.Pause("500")
          Function.Execute("HP")
          Function.Execute("MP")
          Keyboard.Hold keys("{Skill 2}")
          Macro.Pause("50")
          Keyboard.Release keys("{Skill 2}")
          Macro.Pause("500")
          Function.Execute("HP")
          Function.Execute("MP")
          // Keyboard.Hold keys("{Skill 3}")
          // Macro.Pause("50")
          // Keyboard.Release keys("{Skill 3}")
          // Macro.Pause("500")
     end
function

function("Capcha")
     while  Color.At coordinate is within (RGB range)("210", "210", "210", "1", "833", "517")
          begin
               Speech.Say("cap cha", "yes")
               Speech.Say("cap cha", "yes")
               Speech.Say("cap cha", "yes")
               Macro.Pause("10000")
          end
function

The code im trying to do is this one, i imported again and did not work. This is a code made by some one else but for a simplier thing, let me show you this one:
I am trying to make the macro to press "tab" and then "2" if it sees the rgb in range of the coordinates i gave it.
Image
Am i doing anythnig wrong? Thanks for the replies and thanks again.

_________________
-TLBunny


Top
 Profile  
Reply with quote  
 Post subject: Re: Compilation error? Please help=)
Thanked: 0 time(s)  Unread post Posted: Mon Aug 15, 2011 2:07 pm 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4523
Been thanked: 1190 time(s)
Has thanked: 132 time(s)
Contribution Points: 32841
Ah, I know the problem now.

You are working on a Turkish version of windows.

There is an issue with Turkish "i"'s in the BE Editor, that's why you are not able to compile (parse) "if" statements.

This issue should be fixed in the next release of BE, others have had the same issue you are having, how they temporarily solved it was by running their computer in English instead of Turkish.

As far as I know in Turkish you have a few different kinds of i's is that right?

I am really sorry for this inconvenience.

_________________
Blue Eye - Developer / Moderator
Code:
Gigus


Please read the rules about contribution points - click here

Do you know everything about BE, the forum, licenses and contribution points?
Please take a minute to read this introduction & guidelines.


Top
 Profile  
Reply with quote  
 Post subject: Re: Compilation error? Please help=)
Thanked: 0 time(s)  Unread post Posted: Mon Aug 15, 2011 2:14 pm 
Contributor
Contributor
User avatar



Joined: Mon Aug 15, 2011 11:51 am
Posts: 56
Location: TURKEY
Been thanked: 1 time(s)
Has thanked: 6 time(s)
Contribution Points: 410
OH, i got it will try! My computer is english tho, but yeah i will check that asap! =)

Yeah we have "i" and "ı" =) Totally different vovels <3 i will respond as soon as i check that.

_________________
-TLBunny


Top
 Profile  
Reply with quote  
 Post subject: Re: Compilation error? Please help=)
Thanked: 0 time(s)  Unread post Posted: Mon Aug 15, 2011 2:23 pm 
Contributor
Contributor
User avatar



Joined: Mon Aug 15, 2011 11:51 am
Posts: 56
Location: TURKEY
Been thanked: 1 time(s)
Has thanked: 6 time(s)
Contribution Points: 410
Hmm, last question:
Code:
 begin
     Keyboard.Press keys("{<tab>}")
     if  Color.At coordinate is within (RGB range)("255", "233", "166", "5", "326", "79")
          begin
               Keyboard.Press key("3")
          end
 end
if   

is this code wrong cuz i cant compile this one too =/ RRR im getting upset O.o
thanks

_________________
-TLBunny


Top
 Profile  
Reply with quote  
 Post subject: Re: Compilation error? Please help=)
Thanked: 0 time(s)  Unread post Posted: Mon Aug 15, 2011 2:26 pm 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4523
Been thanked: 1190 time(s)
Has thanked: 132 time(s)
Contribution Points: 32841
The code looks fine (Apart from the lonely "if" at the very end.

This code should compile just fine:
Code:
 begin
     Keyboard.Press keys("{<tab>}")
     if  Color.At coordinate is within (RGB range)("255", "233", "166", "5", "326", "79")
          begin
               Keyboard.Press key("3")
          end
 end


Still though, it might not compile in Turkish language operating system, since the "i" in the "if" sentence wont be parsed correctly until I can release the next version of BE with the Turkish "i" fix included.

_________________
Blue Eye - Developer / Moderator
Code:
Gigus


Please read the rules about contribution points - click here

Do you know everything about BE, the forum, licenses and contribution points?
Please take a minute to read this introduction & guidelines.


Top
 Profile  
Reply with quote  
 Post subject: Re: Compilation error? Please help=)
Thanked: 0 time(s)  Unread post Posted: Mon Aug 15, 2011 2:36 pm 
Contributor
Contributor
User avatar



Joined: Mon Aug 15, 2011 11:51 am
Posts: 56
Location: TURKEY
Been thanked: 1 time(s)
Has thanked: 6 time(s)
Contribution Points: 410
Okay i will wait for that then, thank you very much <3

_________________
-TLBunny


Top
 Profile  
Reply with quote  
 Post subject: Re: Compilation error? Please help=)
Thanked: 0 time(s)  Unread post Posted: Mon Aug 15, 2011 4:17 pm 
Contributor
Contributor
User avatar



Joined: Mon Aug 15, 2011 11:51 am
Posts: 56
Location: TURKEY
Been thanked: 1 time(s)
Has thanked: 6 time(s)
Contribution Points: 410
Uhm i have new things that i noticed and i wondered if it was about that turkish system problem we talked about, i got this error when i tried to write an "if" statement from the scratch on the code view.
Image
Thanks in advance.

_________________
-TLBunny


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2, 3  Next

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