Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Fri Nov 22, 2024 2:14 am

All times are UTC




Post a reply
Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
Font colour
Options:
BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Please click and drag the 2 correct statements to the right hand side.
Please click and drag the 2 correct statements to the right hand side.
Please select the options below to the correct list to avoid automated registrations.
Statements
2 correct statements
Chickens can talk
Dogs have 4 legs
Fish can swim
Elephants can fly
   

Topic review - [Consider It] Variables are your friend
Author Message
  Post subject:  Re: [Consider It] Variables are your friend  Reply with quote
kash wrote:
EDIT: Nevermind, found out I just needed curly braces around the variable names.

yes, glad you found it...just add curly brackets.

Define variables = no curly braces
Call variables = curly braces

P.S. Your next question (which you haven't posted yet) will probably be answered by my response on this page: viewtopic.php?f=122&t=20881
Post Posted: Sun Jul 17, 2016 2:01 pm
  Post subject:  Re: [Consider It] Variables are your friend  Reply with quote
Resurrecting old thread.. I am wondering is it possible to pass variables as parameters into predefined BE functions? Such as:

Variable.Set("x_pat_pos", "0")
Variable.Set("y_pat_pos", "0")
Variable.Set("flag", "0")
Color.Find pixel pattern("", "20", "yes", "x_pat_pos", "y_pat_pos")
if Color.Pixel pattern can be located on screen("","")
begin
Mouse.Move to coordinate("Variable.x_pat_pos", "Variable.y_pat_pos")
Variable.Set("flag", "1")
end


Obviously this doesn't work (when pixel pattern is filled) or I wouldn't be asking! Lol. But is there a way of doing this in BE?

EDIT: Nevermind, found out I just needed curly braces around the variable names.
Post Posted: Sat Jul 16, 2016 6:52 pm
  Post subject:  Re: [Consider It] Variables are your friend  Reply with quote
omar_a,

I can understand where you're coming from and I partially agree on that. However, the main goal for Blue Eye Macro is to cater the general audience, essentially those without programming skills. Sure it's wordy but there's a lot of non-programmers that understand this syntax and Blue Eye Macro has been released for about two years. To change the syntax so suddenly would more than likely backfire for the non-programmers as they would have to 're-learn' the syntax over again.

There has been a discussion on syntax changes before in the Ideas section of our board, however you are free to actually make plugins for this program as well, where you are free to write it in any code you want it in.
Post Posted: Sun Feb 26, 2012 7:08 pm
  Post subject:  Re: [Consider It] Variables are your friend  Reply with quote
Would love to see a more programming-style implementation of variables.

Like...

Var myVariable = 9
Var myVariable2 = "a"

Or even adopt a sign/symbol to stand for variables (PHP uses $ quite nicely)
{myVariable} = 9
$myVariable = 9

However its done, with a nice standard and syntax, the un-needed variable "functions" can be removed as they would be done in-line like normal programming / scripting.
Im sure Gigus knows what I mean, but just to elaborate...

if myVariable = 9 then
if $myVariable = 9 then
if {myVariable} = 9 then
^-- all are nicer/ cleaner than if Variable.Is equal to("number", "1") (9)*
Variable being set or being evaluated via = based on whether the operation is unary or binary. That or just do like C++ and use == XD

Additionally, it would allow the `evaluate` function to be performed without needing to be called
myVariable = (2 * 3 + 7) + " units available to deploy"


All in all, I think it'd be a very nice addition / change.
Post Posted: Mon Feb 20, 2012 11:32 pm
  Post subject:  Re: [Consider It] Variables are your friend  Reply with quote
Expansion Pack: Expanded on a FAQ concerning if variables work through functions and how it works.
Post Posted: Thu Feb 09, 2012 2:35 pm
  Post subject:  Re: [Consider It] Variables are your friend  Reply with quote
Oh yes, there's also Pre-Defined Variables so I linked that on the guide at the bottom of my first post. If additional explanation is needed, I will write that down.
Post Posted: Sat Jan 07, 2012 10:40 am
  Post subject:  Re: [Consider It] Variables are your friend  Reply with quote
Hahaha, oh you.

I just make tutorials and such to my own accord and by request (when presented and asked formally).
Post Posted: Fri Jan 06, 2012 10:53 am
  Post subject:  Re: [Consider It] Variables are your friend  Reply with quote
Wow, that was a good post / tutorial. Well done!

And I guess it's also worth a thanks to @TLBunny for making you unlazy :p

When is your next holiday - so I can prepare some requests ^^ (joking). But I really enjoy those kind of posts!
Post Posted: Fri Jan 06, 2012 10:49 am
  Post subject:  Re: [Consider It] Variables are your friend  Reply with quote
You have my permission when they release and when you think they are deemable and corrected for technicalities. :lol:
Post Posted: Thu Dec 29, 2011 1:49 am
  Post subject:  Re: [Consider It] Variables are your friend  Reply with quote
Critical wrote:
Why thank you. I'm considering doing more mini-series of breaking down each main API component to Blue Eye Macro. (Color naturally, is the most popular but will get quite a lengthy overhaul of a tutorial since a lot of people don't know how to do this, and I get asked this on a weekly basis.) :roll:


That would be pretty cool, perhaps I could link to those articles from within the documentation pages - That also makes it easier to use them as future references for answering questions.
Post Posted: Wed Dec 28, 2011 10:28 pm

All times are UTC


Jump to:  


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