Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Sat Sep 21, 2019 7:19 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: (Roulette) Stopping after 5 times same color
Thanked: 0 time(s)  Unread post Posted: Tue Sep 10, 2019 4:35 pm 
New User
New User



Joined: Tue Sep 10, 2019 4:29 pm
Posts: 2
Been thanked: 0 time(s)
Has thanked: 1 time(s)
Contribution Points: 10
Hello guys,
first of all cool tool that I would like to support/buy monthly with a some euros.
Unfortunately I am very bad at programming. Can someone of you tell me what the syntax should look like so that the bot stops as soon as 5 times a color has been rotated in a row?
Syntax should look like this
- Mouse click in place x (start to spin)
- color in place y (black or red)
- click again (spin again)
- stop as soon as 5 times in a row the same color is there!

It does not have to set automatically, only turn until 5 times a color has appeared in a row.

Thank you very much for every tip!!!

Regards,
Olaf


Top
 Profile  
Reply with quote  
 Post subject: Re: (Roulette) Stopping after 5 times same color
Thanked: 1 time(s)  Unread post Posted: Tue Sep 10, 2019 6:25 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1934
Location: USA
Been thanked: 427 time(s)
Has thanked: 33 time(s)
Contribution Points: 16687
There's lots of roulette threads if you would like to do a forum search although I'm not sure if we have one with this exact strategy so I'll go ahead and get you started. It's not going to be exactly what you asked for, since I don't know what roulette site you're using, but this one you can test on your computer before you go to a roulette site.

First I used Windows Paint to create two boxes. One box is red and the other is blue (blue is easier than black on my desktop, but you can change it to any color). Open and minimize both colored box pictures. Start the macro and click on a color picture of your choice (in the taskbar to restore the chosen image). Keep clicking (slowly, I added a 1 second delay so the picture was sure to be on the screen when BEM looked for the color) on any of those two files, in any order until you choose to have 5 in a row. You should then get a message.

After you test it, you just add the same logic to add this to your roulette macro...with a few small changes. For example instead of a window message, you may want it to bet. I wrote it as a function so that it could be easily added to your existing roulette macro. Although there's more than one way to do this, here's what I wrote:
Code:
 begin
     Variable.Set("red", "0")
     Variable.Set("blue", "0")
     Function.Execute("StartCounting")
 end

function("StartCounting")
     begin loop("")
          Mouse.Wait for button up("left")
          // waiting on me to choose a picture
          Macro.Pause("1000")
          // allowing time for the picture to be restored on my screen
          if  Color.At coordinate is (RGB)("236", "28", "36", "351", "317")
               // if color is red
               begin
                    Variable.Set("blue", "0")
                    Variable.Add (Math)("red", "1")
                    Macro.Pause("10")
                    if  Variable.Is equal to("red", "5")
                         begin
                              Window.Display message box("It has been red 5 times in a row", "yes")
                              // change this part to bet instead of displaying a message or whatever you want to do
                              Macro.Restart("yes")
                         end
               end
          if  Color.At coordinate is (RGB)("63", "72", "204", "359", "344")
               // if color is blue
               begin
                    Variable.Add (Math)("blue", "1")
                    Variable.Set("red", "0")
                    Macro.Pause("10")
                    if  Variable.Is equal to("blue", "5")
                         begin
                              Window.Display message box("It has been blue 5 times in a row", "yes")
                              // change this part to bet instead of displaying a message or whatever you want to do
                              Macro.Restart("yes")
                         end
               end
     end
function
There is a redundancy on resetting the variables, you could predefine them if you wanted instead.

So, basically what it does is looks at the color and determines if it's red or blue. If the other variable (color) was chosen/displayed before, it would have a count of "1" or higher, so it resets it and adds "1" to the current color's count. It keeps going until one of the variables reaches "5" (as you requested) and then displays a message. This is the part you would change to continue with your roulette script to bet or whatever you want it to do at this point of reaching the same 5 consecutive colors in a row.

Hope that helps

_________________
----------------------------------------Syrifina---------------------------------------------------
PM me for licenses and/or licensing information: Click Here
[Be sure to include and update your profile with your BE ID]

Forum Rules
Reminder of rules regarding Contribution points
Getting started in 1, 2, 3
Virtual Drivers; Manual Installers


Top
 Profile  
Reply with quote  
 Post subject: Re: (Roulette) Stopping after 5 times same color
Thanked: 0 time(s)  Unread post Posted: Fri Sep 13, 2019 10:52 am 
New User
New User



Joined: Tue Sep 10, 2019 4:29 pm
Posts: 2
Been thanked: 0 time(s)
Has thanked: 1 time(s)
Contribution Points: 10
oh my god,
thank you very much. I modified it a bit with automatic clicks, but that's exactly what i've been looking for.

Super cool software, thanks a lot to you!!!!


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