Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Nov 21, 2024 12:24 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: BlueEye Promotional & Simple Math Solver
Thanked: 0 time(s)  Unread post Posted: Thu Apr 29, 2010 4:22 am 
Lifetime VIP Contributor
Lifetime VIP Contributor
User avatar



Joined: Mon Apr 26, 2010 5:11 am
Posts: 25
Been thanked: 5 time(s)
Has thanked: 0 time(s)
Contribution Points: 1051
Video: http://www.youtube.com/watch?v=e2g5tocT3SQ


Code:
 begin
     File.Read text("C:\Users\My Computer\Desktop\math.txt", "mathproblem")
     Variable.Evaluate (Math)("{mathproblem}", "mathsolution")
     Variable.Evaluate (Text)("{mathproblem} = {mathsolution}", "sentence")
     File.Write text("C:\Users\My Computer\Desktop\math.txt", "No", "{sentence}")
     Window.Display Message Box("{sentence}", "true")
     System.Launch application("C:\Users\My Computer\Desktop\math.txt", "yes")
 end


The file location will probably be different depending on your OS.

To use this macro you need to create a text file on your desktop called math

Right now this macro does not support checking for multiple problems so it is slightly buggy.


Top
 Profile  
Reply with quote  
 Post subject: Re: BlueEye Promotional & Simple Math Solver
Thanked: 0 time(s)  Unread post Posted: Thu Apr 29, 2010 7:04 am 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4525
Been thanked: 1346 time(s)
Has thanked: 133 time(s)
Contribution Points: 33209
Very nice.

Thank you for sharing OwnAge.

_________________
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: BlueEye Promotional & Simple Math Solver
Thanked: 0 time(s)  Unread post Posted: Thu Apr 29, 2010 7:07 am 
New User
New User



Joined: Tue Apr 06, 2010 2:10 pm
Posts: 8
Been thanked: 1 time(s)
Has thanked: 0 time(s)
Contribution Points: 252
OwnAge wrote:
Video: http://www.youtube.com/watch?v=e2g5tocT3SQ


Code:
 begin
     File.Read text("C:\Users\My Computer\Desktop\math.txt", "mathproblem")
     Variable.Evaluate (Math)("{mathproblem}", "mathsolution")
     Variable.Evaluate (Text)("{mathproblem} = {mathsolution}", "sentence")
     File.Write text("C:\Users\My Computer\Desktop\math.txt", "No", "{sentence}")
     Window.Display Message Box("{sentence}", "true")
     System.Launch application("C:\Users\My Computer\Desktop\math.txt", "yes")
 end


The file location will probably be different depending on your OS.

To use this macro you need to create a text file on your desktop called math

Right now this macro does not support checking for multiple problems so it is slightly buggy.


I like how it writes the result back in to the file ^^
Nice work, thank you :)


Top
 Profile  
Reply with quote  
 Post subject: Re: BlueEye Promotional & Simple Math Solver
Thanked: 0 time(s)  Unread post Posted: Thu Apr 29, 2010 8:19 am 
Lifetime VIP Contributor
Lifetime VIP Contributor
User avatar



Joined: Mon Apr 26, 2010 5:11 am
Posts: 25
Been thanked: 5 time(s)
Has thanked: 0 time(s)
Contribution Points: 1051
Drake wrote:
OwnAge wrote:
Video: http://www.youtube.com/watch?v=e2g5tocT3SQ


Code:
 begin
     File.Read text("C:\Users\My Computer\Desktop\math.txt", "mathproblem")
     Variable.Evaluate (Math)("{mathproblem}", "mathsolution")
     Variable.Evaluate (Text)("{mathproblem} = {mathsolution}", "sentence")
     File.Write text("C:\Users\My Computer\Desktop\math.txt", "No", "{sentence}")
     Window.Display Message Box("{sentence}", "true")
     System.Launch application("C:\Users\My Computer\Desktop\math.txt", "yes")
 end


The file location will probably be different depending on your OS.

To use this macro you need to create a text file on your desktop called math

Right now this macro does not support checking for multiple problems so it is slightly buggy.


I like how it writes the result back in to the file ^^
Nice work, thank you :)


Thanks :) next vid will be on making a google search macro.


Top
 Profile  
Reply with quote  
 Post subject: Re: BlueEye Promotional & Simple Math Solver
Thanked: 0 time(s)  Unread post Posted: Thu Apr 29, 2010 8:30 am 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4525
Been thanked: 1346 time(s)
Has thanked: 133 time(s)
Contribution Points: 33209
OwnAge wrote:
Thanks :) next vid will be on making a google search macro.


Looking forward to it!

Actually i just created a small/fun version of your calculator, it will perform the calculation inside the document the second you enter the "=" sign.

On a danish keyboard (like mine) a "=" sign, is made up by shift+0.

If it is not on your keyboard, you will need to modify the macro accordingly.

here is the code for it (sry i couldn't create a video right now)
Code:
 begin
     Keyboard.Wait for keys to be held down("0")
 end
 if  Keyboard.Key is held down("{<shift>}")
     or
     Keyboard.Key is held down("{<rightshift>}")
     begin
          Keyboard.Wait for keys to be released("0{<shift>}{<rightshift>}")
          Keyboard.Press keys at once("{<ctrl>}a")
          Clipboard.Copy()
          Keyboard.Press key("{<end>}")
          Clipboard.Get text("expression")
          Variable.Replace within text("expression", "=", " ")
          Variable.Evaluate (Math)("{expression}", "result")
          Keyboard.Insert text("{result}")
     end     


Set the macro loops to infinite in the wizard, so you wont have to start the macro over and over again, to perform a new calculation.

_________________
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: BlueEye Promotional & Simple Math Solver
Thanked: 0 time(s)  Unread post Posted: Thu Apr 29, 2010 8:58 am 
Active User
Active User



Joined: Thu Feb 11, 2010 4:36 pm
Posts: 38
Been thanked: 0 time(s)
Has thanked: 3 time(s)
Contribution Points: 652
Thank you for sharing. Nice "how to" - demo in regards to file usages and to evaluation of math expressions.


Top
 Profile  
Reply with quote  
 Post subject: Re: BlueEye Promotional & Simple Math Solver
Thanked: 0 time(s)  Unread post Posted: Thu Apr 29, 2010 9:09 am 
Lifetime VIP Contributor
Lifetime VIP Contributor
User avatar



Joined: Mon Apr 26, 2010 5:11 am
Posts: 25
Been thanked: 5 time(s)
Has thanked: 0 time(s)
Contribution Points: 1051
Gigus wrote:
OwnAge wrote:
Thanks :) next vid will be on making a google search macro.


Looking forward to it!

Actually i just created a small/fun version of your calculator, it will perform the calculation inside the document itself, at the very second you insert the "=" sign.

On a danish keyboard (like mine) a "=" sign, is made up by shift+0.

If it is not on your keyboard, you will need to modify the macro accordingly.

here is the code for it (sry i couldn't create a video right now)
Code:
 begin
     Keyboard.Wait for keys to held down("0")
 end
 if  Keyboard.Key is held down("{<shift>}")
     or
     Keyboard.Key is held down("{<rightshift>}")
     begin
          Keyboard.Wait for keys to be released("0{<shift>}{<rightshift>}")
          Keyboard.Press keys at once("{<ctrl>}a")
          Clipboard.Copy()
          Keyboard.Press key("{<end>}")
          Clipboard.Get text("expression")
          Variable.Replace within text("expression", "=", " ")
          Variable.Evaluate (Math)("{expression}", "result")
          Keyboard.Insert text("{result}")
     end     


Set the macro loops to infinite in the wizard, so you wont have to start the macro over and over again, to perform a new calculation.


Very clever. I like the way it shows up. Besides the google searcher which is already done I'm working on a Virtual Tutorial of Blue Eye using speech and window checks. Kinda walks you through how to use Blue Eye. It's pretty easy even without a tutorial but I just wanna see how it will turn out. You should make a snippet thread where we can insert useful macros so that way we dont have to keep creating new threads.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 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