Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Nov 15, 2018 12:13 pm

All times are UTC




Post new topic Reply to topic  [ 39 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Roulette bot version 2
Thanked: 0 time(s)  Unread post Posted: Thu Mar 31, 2011 8:09 pm 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4523
Been thanked: 1192 time(s)
Has thanked: 132 time(s)
Contribution Points: 32845
Hey guys.

Here is a small roulette bot, playing online roulette at PKR using the Martingale principle.

A complete video tutorial is available on YouTube: http://www.youtube.com/watch?v=dv8ynssbH9w


Here is the code for the macro (it is also available in the repository):
Code:
 begin
     Variable.Set("bet", "{MinimumBet}")
     Function.Execute("Reset window location")
     begin loop()
          Function.Execute("Place bet")
          Function.Execute("Check if we won")
          if  Variable.Is equal to("won", "yes")
               begin
                    Macro.Report progress("We won! Resetting bet")
                    Variable.Set("bet", "{MinimumBet}")
               end
          if  Variable.Is equal to("won", "no")
               begin
                    Macro.Report progress("We lost! Doubling bet")
                    Variable.Multiply (Math)("bet", "2")
                    if  Variable.Is greater than (Math)("bet", "{MaximumBet}")
                         begin
                              Macro.Report progress("Giving up and resetting bet")
                              Variable.Set("bet", "{MinimumBet}")
                         end
               end
     end
 end

function("Reset window location")
     begin
          Window.Set location("PKR - let's play!", "yes", "1", "1")
          Window.Bring to front("PKR - let's play!", "yes")
          Macro.Pause("1000")
     end
function

function("Place bet")
     begin loop("{bet}")
          Mouse.Click at coordinate("364", "403", "left")
     end
     begin
          Mouse.Click at coordinate("510", "697", "left")
          Macro.Pause("500")
          Color.Wait for color at coordinate to be within (RGB range)("10", "1", "1", "10", "1010", "312")
          Macro.Pause("500")
     end
function

function("Check if we won")
     begin
          Variable.Set("won", "no")
          if  Color.At coordinate is not within (RGB range)("2", "65", "64", "10", "978", "159")
               begin
                    Variable.Set("won", "yes")
               end
     end
function


You will need to create the following two variables:
Code:
{MinimumBet}   1
{MaximumBet}   64


Enjoy.

_________________
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: Roulette bot version 2
Thanked: 0 time(s)  Unread post Posted: Fri Jun 10, 2011 7:56 pm 
New User
New User



Joined: Fri Jun 10, 2011 6:49 pm
Posts: 3
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 28
hello

I tried this code and it really works perfectly.
my doubt is: How can I do for appear the same color several times (ex: spin until appear 3 times the same color) and then bet on the opposite color?

thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Roulette bot version 2
Thanked: 0 time(s)  Unread post Posted: Fri Jun 10, 2011 8:35 pm 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4523
Been thanked: 1192 time(s)
Has thanked: 132 time(s)
Contribution Points: 32845
That would just be a slightly different macro, a small change in the logic - but quite easy to do.

Perhaps you should give it a go? Ill be happy to assist with any questions :)

_________________
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: Roulette bot version 2
Thanked: 0 time(s)  Unread post Posted: Sat Jun 11, 2011 12:57 am 
New User
New User



Joined: Fri Jun 10, 2011 6:49 pm
Posts: 3
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 28
I tried to change the code but something is wrong and i can not put it working well.
I thank you if you can help me with the code.


Top
 Profile  
Reply with quote  
 Post subject: Re: Roulette bot version 2
Thanked: 0 time(s)  Unread post Posted: Sun Jun 12, 2011 8:48 am 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4523
Been thanked: 1192 time(s)
Has thanked: 132 time(s)
Contribution Points: 32845
Please show me the piece of code that is not working, and explain to me what you want that specific piece of code to do.

_________________
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: Roulette bot version 2
Thanked: 0 time(s)  Unread post Posted: Thu Jun 23, 2011 1:37 am 
New User
New User



Joined: Fri Jun 10, 2011 6:49 pm
Posts: 3
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 28
I solved the problem. simply xD

thanks anyway


Top
 Profile  
Reply with quote  
 Post subject: Re: Roulette bot version 2
Thanked: 0 time(s)  Unread post Posted: Thu Jun 23, 2011 5:10 am 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4523
Been thanked: 1192 time(s)
Has thanked: 132 time(s)
Contribution Points: 32845
Glad you got it working :)

_________________
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: Roulette bot version 2
Thanked: 0 time(s)  Unread post Posted: Sun Jul 17, 2011 4:44 am 
New User
New User



Joined: Sun Jul 17, 2011 4:35 am
Posts: 2
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 22
Hello
I am very entrested in how to create a macro that makes it bets in red after for example the color black came 3,4,etc out

How do I do that. I am totally nob using the blue eye macro.

Thank you


Top
 Profile  
Reply with quote  
 Post subject: Re: Roulette bot version 2
Thanked: 0 time(s)  Unread post Posted: Sun Jul 17, 2011 7:41 pm 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4523
Been thanked: 1192 time(s)
Has thanked: 132 time(s)
Contribution Points: 32845
I would suggest you read though a couple of macros here in the forum to get some ideas, it shouldnt be very complicated to create a macro to wait for a certain color to appear several times in a row, and then perform an action.

(Theoretically though you wont have any higher chance for a red after 999999 blacks in a row, only statistically)

_________________
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: Roulette bot version 2
Thanked: 0 time(s)  Unread post Posted: Sat Jul 23, 2011 12:09 am 


I have got a situation here

I used the macro from the video (youtube) and it places bets ,but the the only problem is that it doens't double the bet it just bet one by one

What may be going on?


Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 39 posts ]  Go to page 1, 2, 3, 4  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