Author |
Message |
|
|
Post subject: |
Re: [Consider It] Variables are your friend |
|
|
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
[quote="kash"]EDIT: Nevermind, found out I just needed curly braces around the variable names.[/quote] 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: http://www.blueeye-macro.com/viewtopic.php?f=122&t=20881
|
|
|
|
Posted: Sun Jul 17, 2016 2:01 pm |
|
|
|
|
|
Post subject: |
Re: [Consider It] Variables are your friend |
|
|
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.
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.
|
|
|
|
Posted: Sat Jul 16, 2016 6:52 pm |
|
|
|
|
|
Post subject: |
Re: [Consider It] Variables are your friend |
|
|
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.
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.
|
|
|
|
Posted: Sun Feb 26, 2012 7:08 pm |
|
|
|
|
|
Post subject: |
Re: [Consider It] Variables are your friend |
|
|
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.
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.
|
|
|
|
Posted: Mon Feb 20, 2012 11:32 pm |
|
|
|
|
|
Post subject: |
Re: [Consider It] Variables are your friend |
|
|
Expansion Pack: Expanded on a FAQ concerning if variables work through functions and how it works.
Expansion Pack: Expanded on a FAQ concerning if variables work through functions and how it works.
|
|
|
|
Posted: Thu Feb 09, 2012 2:35 pm |
|
|
|
|
|
Post subject: |
Re: [Consider It] Variables are your friend |
|
|
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.
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.
|
|
|
|
Posted: Sat Jan 07, 2012 10:40 am |
|
|
|
|
|
Post subject: |
Re: [Consider It] Variables are your friend |
|
|
Hahaha, oh you.
I just make tutorials and such to my own accord and by request (when presented and asked formally).
Hahaha, oh you.
I just make tutorials and such to my own accord and by request (when presented and asked formally).
|
|
|
|
Posted: Fri Jan 06, 2012 10:53 am |
|
|
|
|
|
Post subject: |
Re: [Consider It] Variables are your friend |
|
|
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!
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!
|
|
|
|
Posted: Fri Jan 06, 2012 10:49 am |
|
|
|
|
|
Post subject: |
Re: [Consider It] Variables are your friend |
|
|
You have my permission when they release and when you think they are deemable and corrected for technicalities.
You have my permission when they release and when you think they are deemable and corrected for technicalities. :lol:
|
|
|
|
Posted: Thu Dec 29, 2011 1:49 am |
|
|
|
|
|
Post subject: |
Re: [Consider It] Variables are your friend |
|
|
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.) 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.
[quote="Critical"]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:[/quote]
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.
|
|
|
|
Posted: Wed Dec 28, 2011 10:28 pm |
|
|
|
|