Blue Eye Logo

Blue Eye Macro

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

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
Elephants can fly
Dogs have 4 legs
Chickens can talk
Fish can swim
   

Topic review - Roulette bot version 2
Author Message
  Post subject:  Re: Roulette bot version 2  Reply with quote
I finally figured out what the problem is. There is a variable in the loop that will always place "Place bet on red" after some time, regardless of what came before, because it is the beginning of the "loop". The loop should start with a variable that will determine what the loop ended on - a loss or a win. I have no idea how to do this.


Syrifina wrote:
I'll take a look at the files.

Quote:
Is setting of the program important and can it affect the results? for instance, I couldn't install the virtual drive or "DirectX rendered" is in N/A status.
Some settings definitely affect the performance, but in this case (for the ones you listed) I would say "no."

Virtual Drivers are mainly for games that will not accept the Windows OEM drivers, but you have this working so there really isn't a need for them...and no they wouldn't affect the performance. If the game recognized that the inputs were from a 3rd party and they either wouldn't allow any input or gave you a message that stated something like "a macro has been detected" then that's where you could use the virtual drivers to get around this. In your case you are already running the macro and the game is accepting the inputs so you are fine with the Win API drivers.

DirectX is sort of the same way. If the game was rendering in DirectX and you tried to take a screenshot (like with the Investigator tool), it could just give you a blank screen. So if you were unable to take screenshots because the game is rendering in DirectX, then you could enable DirectX capturing in BEM to get the screenshots for the Investigator tool. But again, you seem to have this working also, there's no need to enable DirectX capturing.

If it doesn't always recognize the correct color, you just may need to do some adjusting. In your script sometimes you use "to be (RGB)" and sometimes "within (RGB)". Using "within range" is much better if the script is not recognizing the colors correctly; one is exactly that color and the other is a range or more values that are approximately that color. So in your original script (I haven't reviewed your new files yet) you are using a range of "10"...so maybe try "15" or a little more. *Well, first I would review the execution log to see if it's having an issue with one particular color or both and of course only adjust the ones it is having issues with.

To be honest, if that's the only problem you are having now, adjusting the color range should fix it. I'll review the files but try that and see if it helps. I'll let you know if I see anything else.


Attachments:
bet issue.png
bet issue.png [ 59.79 KiB | Viewed 83 times ]
Post Posted: Tue Sep 24, 2024 7:36 pm
  Post subject:  Re: Roulette bot version 2  Reply with quote
Gigus wrote:
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.




:) :) :) I SEE
Post Posted: Mon Mar 21, 2022 3:27 am
  Post subject:  Re: Roulette bot version 2  Reply with quote
Hi Guestnick,

I hope you are doing well with your Strategy by doubling 8 times on a Colour 8-)

Please don't get me wrong if I do questions on behalf, but to be honest I'm :? :? :?

Math is not an opinion Right?
Why is the maximum bet 64 if we take 1 and double it 8 times :?:

Attachment:

[ Play Quicktime file ] Martingale_8.mp4 [ 127.5 KiB | Viewed 1484 times ]


The Calculator says 256 should be the maximum Bet :!:

Subsequently you need a Wallet of 256 * 2 - 1 = 511 Units to cover 9 Steps for One Color :!: :?:

Whenever you Hit.... you are getting 1 Unit Profit but if you lose once you will never recover again :!: :!:

Now just to clarify if your Max Bet should be 64 it is appropriate to say.....

we take 1 and we double 6 Times to cover 7 Steps :!:

Subsequently we need a Wallet of 64 * 2 - 1 = 127 Units to cover 7 Steps for One Colour * 6 Colours (Black/Red/Even/Odd/High/Low) = 762 :!: :?:


Pretending to get 10% profit out of it....
This could be a real scenario :shock:
Attachment:
Martingale_Test_Results.txt [37.3 KiB]
Downloaded 266 times


Please try yourself and let me know

Attachment:
test;martingale.bem [182.59 KiB]
Downloaded 253 times


Predifine the variables like this

Attachment:
Martingale.PNG
Martingale.PNG [ 8.15 KiB | Viewed 1483 times ]


A friendly Advise.....
Never double when we lose :!: :!: But when we Win ;)
Cheers
Post Posted: Thu Mar 17, 2022 7:58 am
  Post subject:  Re: Roulette bot version 2  Reply with quote
Hi Guestnick,

I hope you are doing well with your Strategy by doubling 8 times on a Colour 8-)

Please don't get me wrong if I do questions on behalf, but to be honest I'm :? :? :?

Math is not an opinion Right?
Why is the maximum bet 64 if we take 1 and double it 8 times :?:

Attachment:
Martingale_8.mp4
Post Posted: Thu Mar 17, 2022 7:37 am
  Post subject:  Re: Roulette bot version 2  Reply with quote
In the script you provided, you have functions for both place bet and double bet.
- "place bet" has a loop that will loop "bet" times
- "double bet" does not have a loop and will only run once

It looks like the way you are using it you need to reverse this. Use "place bet" to only bet once at the beginning and "double bet" in a loop for "bet" times (or as you have it, "double" times)...It doesn't look like you're using the variables "double" or "doubleButton".

It also looks like you're missing the math to increase "MinimumBet". In the original code it's at the top in the "if Variable.Is equal to("won", "no")" part. You need to multiply it by 2 there...or use those variables for double/button.
Post Posted: Sat Feb 05, 2022 9:52 am
  Post subject:  Re: Roulette bot version 2  Reply with quote
Hi there,

Hopefully someone will still read this, it's been a while. I have been trying to implement the source code and it works amazing! However, since this is a perfect way to 'grind' roulette, doubling by multiplying the minimumbet simply takes a while. I mean, if I double 8 times, it has to place the minimumbet 64 times.

So I tried to write a new function to make use of the automated double bet button. This works. It reads when I lost and then doubles it, but only once. If I lose again it just skips back to minimumbet.

Am I doing something wrong with looping my double bet function?

Thanks in advance!

begin
Variable.Set("bet", "{MinimumBet}")
Variable.Set("double", "{DoubleButton}")
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")
Function.Execute("Double bet")
end
end
end

function("Reset window location")
begin
Window.Set location("Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes", "1", "1")
Window.Bring to front("Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes")
Macro.Pause("6000")
end
function

function("Place bet")
begin loop("{bet}")
Mouse.Click at coordinate relative to window("547", "567", "left", "Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes")
Variable.Set random number("ms", "700", "1500")
Macro.Pause("{ms}")
end
begin
Mouse.Click at coordinate relative to window("516", "734", "left", "Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes")
Macro.Pause("4000")
end
function

function("Double bet")
begin
Mouse.Click at coordinate relative to window("415", "735", "left", "Playtech - 0AR8584234 - Classic Roulette - Google Chrome", "yes")
Variable.Set random number("ms", "2000", "2200")
Macro.Pause("{ms}")
end
function

function("Check if we won")
begin
Variable.Set("won", "no")
if Color.At coordinate is within (RGB range)("61", "61", "61", "10", "884", "162")
begin
Variable.Set("won", "yes")
end
end
function
Post Posted: Fri Feb 04, 2022 11:18 pm
  Post subject:  Re: Roulette bot version 2  Reply with quote
thanks
Post Posted: Mon Nov 16, 2020 2:31 am
  Post subject:  Re: Roulette bot version 2  Reply with quote
Example of bot working on live roulette



https://www.youtube.com/watch?v=cDNAbrO0jsY
Post Posted: Tue Oct 27, 2020 12:32 pm
  Post subject:  Re: Roulette bot version 2  Reply with quote
Gigus wrote:
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.



Is it complete or only an example?
Thank you
Post Posted: Thu Oct 08, 2020 6:41 am
  Post subject:  Re: Roulette bot version 2  Reply with quote
I'll take a look at the files.

Quote:
Is setting of the program important and can it affect the results? for instance, I couldn't install the virtual drive or "DirectX rendered" is in N/A status.
Some settings definitely affect the performance, but in this case (for the ones you listed) I would say "no."

Virtual Drivers are mainly for games that will not accept the Windows OEM drivers, but you have this working so there really isn't a need for them...and no they wouldn't affect the performance. If the game recognized that the inputs were from a 3rd party and they either wouldn't allow any input or gave you a message that stated something like "a macro has been detected" then that's where you could use the virtual drivers to get around this. In your case you are already running the macro and the game is accepting the inputs so you are fine with the Win API drivers.

DirectX is sort of the same way. If the game was rendering in DirectX and you tried to take a screenshot (like with the Investigator tool), it could just give you a blank screen. So if you were unable to take screenshots because the game is rendering in DirectX, then you could enable DirectX capturing in BEM to get the screenshots for the Investigator tool. But again, you seem to have this working also, there's no need to enable DirectX capturing.

If it doesn't always recognize the correct color, you just may need to do some adjusting. In your script sometimes you use "to be (RGB)" and sometimes "within (RGB)". Using "within range" is much better if the script is not recognizing the colors correctly; one is exactly that color and the other is a range or more values that are approximately that color. So in your original script (I haven't reviewed your new files yet) you are using a range of "10"...so maybe try "15" or a little more. *Well, first I would review the execution log to see if it's having an issue with one particular color or both and of course only adjust the ones it is having issues with.

To be honest, if that's the only problem you are having now, adjusting the color range should fix it. I'll review the files but try that and see if it helps. I'll let you know if I see anything else.
Post Posted: Thu Jul 23, 2020 11:35 pm

All times are UTC


Jump to:  


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